Giter VIP home page Giter VIP logo

sharpbrowser's Introduction

SharpBrowser

SharpBrowser is the fastest open source C# web browser there is! Slightly faster than Google Chrome when rendering web pages due to lightweight CEF renderer. We compared every available .NET browsing engine and finally settled on the high-performance CefSharp. Released under the permissive MIT license.

Features

  • HTML5, CSS3, JS, HTML5 Video, WebGL 3D, WebAssembly, etc
  • Tabbed browsing
  • Address bar (also opens Google)
  • Back, Forward, Stop, Refresh
  • Developer tools
  • Search bar (also highlights all instances)
  • Download manager
  • Custom error pages
  • Custom context menu
  • Easily add vendor-specific branding, buttons or hotkeys
  • View online & offline webpages

Hotkeys

Hotkeys Function
Ctrl+T Add a new tab
Ctrl+N Add a new window
Ctrl+W Close active tab
F5 Refresh active tab
F12 Open developer tools
Ctrl+Tab Switch to the next tab
Ctrl+Shift+Tab Switch to the previous tab
Ctrl+F Open search bar (Enter to find next, Esc to close)

System requirements

  • You need VC++ 2019 Runtime 32-bit and 64-bit versions

  • You need .NET 6.

  • You need to install the version of VC++ Runtime that CEFSharp needs. Since we are using CefSharp 106, according to this we need the above versions

Getting started

Documentation

Code

  • SharpBrowser uses CefSharp 106 and is built on NET 6
  • SharpBrowser supports AnyCPU as well as x86/x64 specific builds
  • MainForm.cs - main web browser UI and related functionality
  • Handlers - various handlers that we have registered with CefSharp that enable deeper integration between us and CefSharp
  • Data/JSON.cs - fast JSON serializer/deserializer
  • bin - Binaries are included in the bin folder due to the complex CefSharp setup required. Don't empty this folder.
  • bin/storage - HTML and JS required for downloads manager and custom error pages

Credits

Screenshots

Apple.com

WebAssembly & WebGL

YouTube

Google Maps

Search Bar

Downloads Tab

Developer Tools

Custom Error Pages

sharpbrowser's People

Contributors

imgbotapp avatar landarxt avatar levibickel avatar robinrodricks avatar sharpbrowser avatar timtechnology avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sharpbrowser's Issues

No descarga el Documento

Al momento de descargar archivos no termina de descargar, es decir no lo almacena en mi computadora, leí que se debe de modificar la funcion CalcDownloadPath pero no se como.
Gracias por la Ayuda.

How to change the program icon?

I always use a vpn in my browsers. Is this built from chromium? Uhm sorry for my lack of knowledge. But would there be a way for me to add a vpn that's active all the time? Or maybe there would be a button that toggles it? Maybe a way to add custom vpns created from OpenVPN?

add few features

Hello.
i would like you request for a few standard features that maybe still missing in this project.

1.History Browser
2.Home button
3.Status Bar in bottom
4.Multiple thread for Download manager
5.Pages Zoom
6.Pages Snapshot/ScreenShot
7.Password Manager
8.Auto Update
9.Private Tab
10.Tab Task Manager
11.AdsBlock Build-in Extension/Plugins just like opera
12.Bookmarks Manager
13.Automatic Bug Reports on Exceptions Error.

How do I get all open tabs?

How do I get all open tabs?
I want to get a collection of tabs.
I want to get the property of each tab:

  • url;
  • HTML code of the page;

Is it possible to modify html documents ?

I like to apply some modifications to the html document after the page is loaded, is this possible ?
I looked into handling Browser_FrameLoadEnd method but I was not able to find a way to set the html document.

Release android version!!!!

Why not releasing android version??
Since android is open source ,you can release its android version & see how fast the browser will be on amdroid with some specific features(like ad block, tracking protection,dark mode web pages)

Can't sign in to Google

When i try to sign into my Google account i get an error, that my browser is not allowed to sign in. Google has disabled logins from Embedded Frameworks (Reference). I hope I can find a solution here for this problem.

can not download files automatic

when i click a link to download a file.if the file is a pdf,it can be show on a new tab.but the others can not be show and can not be download automatic. any one can hele me? tks.

Dotted lines pdf are printed off scale

SHIPP-BRK-02___0.pdf
it is my first bug on github, I will try to explain simple as possible.

**What version of the product are you using? 92.0.260
Description.

Using Edge, Adobe Reader or latest Google chrome the dotted lines are printed but no trough SharpBrowser.
Additional: If we use to print with Chrome Version 92.0.4515.159 (Official Build) (64-bit) then these lines print out correctly.

image
(as seen trough cef webbrowser)
after printing trough CEF webbrowser (scanned for results)
image

What architecture x86 or x64?
x64

What version of .Net?
4.5.2

On what operating system?
Win10

Are you using WinForms, WPF or OffScreen?
WinForms

image
image

image

also tested trough sample Sharpbrowser
image

Does CefSharp 79 support Flash?

I added Flash support to sharpbrowser code, but visiting the website still indicates that flash has expired. The flash version used is 32.0.0.192.
Added code:
settings.CefCommandLineArgs["enable-system-flash"] = "1";
settings.CefCommandLineArgs.Add("ppapi-flash-version", "32.0.0.192");
settings.CefCommandLineArgs.Add("ppapi-flash-path", @".\pepflashplayer.dll");

BrowserTabStrip.cs line 382 error

In the BrowserTabStrip.cs file on the 382nd line the CLR returns an error: "the _ doesn't exist in the current context". How to fix it?

TitleChanged why Run twice?

Case:
I declare a variable 'LoginTitleChangeCount', this variable I just used on one function place.

Why My LogToText(' ..... ') Function will be run twice?
default

中文补充说明:
我将TitleChanged的事件上绑定了一个方法,为什么明明执行过一次 LoginTitleChangeCount+1
后,LoginTitleChangeCount 不会再等于1了。而判断是否等于1的逻辑里面的方法会再次执行? 我标识对这个事件加载次数和计数值疑惑。

chinese show

need those settings:
settings.Locale = "zh-CN";
settings.AcceptLanguageList = "zh-CN";

Can a VPN be added?

I wanted to say, my last issue got closed without my problem being solved. I wanted to add a vpn/proxy to the browser. How can I do so? And yes I think Cefsharp supports proxy settings.

Good job!

Is PAC supported in SharpBrowser?
Or I can select proxy server according to the url?

Quick Question

Where would I find the file in which the web (http) connection is handled? Does it use Microsoft's WebClient(), HttpClient(), or a custom one?

How to visualize page loading and updating using the "ProgressBar"?

How to visualize page loading and updating using the "ProgressBar"?
I try to do it, but nothing works.

I have set breakpoints in the downloadHandler.cs class
in the methods:

  • CanDownload;
  • OnBeforeDownload;
  • OnDownloadUpdated;

But when debugging, nothing happens there.

Full Screen Mode

Thank you for this awesome development,

Is there any chance that we can achieve a full-screen mode on videos like youtube or html5 video players?
I am new to dot net and this exe dev.

Thank you in advance

Get a notification from each tab that the page is loaded

How do I get a notification from each tab that a page is loaded?

I created a form to control the browser.
Logic:

    • open the browser;
  • open multiple links in a separate tab;

Question.

  1. How do I get a notification from each tab that the download is finished and the page is fully loaded?

Form1.cs
`namespace CefSharpWinFormsAndSharpBrowser
{
public partial class Form1 : Form
{
BrowserService browserService = new BrowserService();

    public Form1()
    {
        InitializeComponent();
        // Form1Tests form1Tests = new Form1Tests(this);
        // form1Tests.Owner = this;
    }

   
    /// <summary>
    /// Open browser
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    private void button1_Click(object sender, EventArgs e)
    {
        browserService.OpenBrowser();
    }
   
    /// <summary>
    /// Goto URL
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    private void button10_Click(object sender, EventArgs e)
    {
        List<string> urls = new List<string>()
        {
            "github.com",
            "stackoverflow.com",
            "habr.com"
        };

        foreach (string url in urls)
        {
            browserService.AddNewBrowser(url);
            // browserService.LoadURL(url);
        }
    }
}

}
`

BrowserService.cs
`using SharpBrowser;
using SharpBrowser.BrowserTabStrip;

using System.IO;

namespace CefSharpWinFormsAndSharpBrowser.Services
{
public class BrowserService
{
// Form _formBrowser;

    MainForm mainForm = new MainForm();

    SharpTab SharpTab = new SharpTab();

    FileService fileService = new FileService();        

    private SharpBrowser.BrowserTabStrip.BrowserTabStrip TabPages = new SharpBrowser.BrowserTabStrip.BrowserTabStrip();

    public BrowserService()
    {
        

    }

    public void OpenBrowser()
    {
        mainForm.Show();

    }
    

    public void AddNewBrowser(string url)
    {
        mainForm.AddNewBrowserTab(url);
    }       


    public void LoadURL(string url)
    {
        mainForm.LoadURLPublic(url);
    }
}

}`

Unable to use web notifications

Hi,
I downloaded your project. But I am unable to use javascript here on the browser.
I get this notification pop up on chrome but not in the project browser.
I am attaching a screenshot of wanted output.
Please revert as soon as possible.
image

FATabStrip

Hello

I'd like to ask

  1. Can tabs be hidden?

  2. Can the background color of the tab be changed?

RequestHandler & SchemeHandler

Hello, I have problems with RequestHandler and SchemeHandler classes. Apparently it is a mistake in the implementation. Help me solve this problem
Erro_RequestHandler

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.