chromium-embedded

CefSharp doesn't run in WIndows 7

有些话、适合烂在心里 提交于 2019-12-11 08:32:32
问题 I have been struggle to run my C# winforms CefSharp on Windows 7. Everytime that I try to run it I have a error and the app doesn't open. I tryed to run this example on client: https://github.com/cefsharp/CefSharp.MinimalExample Here some things of what I understood so far: Windows 7 with visual studio 2013 the program works perfectly. It doesn't run in clients with Windows 7 with only .NetFramework Installed. The page above says that I need all theses files in app folder to run it. I have

Get finished download in CefSharp

怎甘沉沦 提交于 2019-12-11 05:27:55
问题 I try do make a small downloader-tool for a website with CefSharp. For downloading files, I use the pretty well example DownloadHandler from CefSharp. Now, I want to do some things after the download is finished. I know the " downloadItem " has a " IsComplete " value. But if I put something like this in the " OnDownloadUpdated " method, stuff will never be executed if (downloadItem.IsComplete) { //do stuff } So, my question is, where I have to check if my downloaded item is completed? EDIT:

CEFSharp Resource loaded event

对着背影说爱祢 提交于 2019-12-11 04:48:22
问题 I am looking for something to intercept the response of a resource loaded. For example an image. I am aware the OnResourceResponse method in the CefSharp.IRequestHandler is not available. See this link: https://github.com/cefsharp/CefSharp/blob/master/CefSharp/IRequestHandler.cs#L37 Is there any other way I can intercept a resource loaded? I only need to know if the request is ready, and what URL it contains. I do not mind about the content. 来源: https://stackoverflow.com/questions/26959731

Background process on the native function at Chromium Embedded Framework

廉价感情. 提交于 2019-12-10 11:05:34
问题 I'm testing a CEF3 program on Visual Studio 2013(C++) and Windows 8.1. I want to process the native function called from JavaScript. However, while the native function is executing, a browser freezes. PostTask is not effective, either. In the case of a thread is made with CreateThread(Win32 API), it occurs an error when getting CefV8Value in the other thread. Isn't there any good way of processing a function asynchronously? CefSettings settings; settings.single_process = true; void App:

CEFSharp (Chromium Embedded Framework) in Interop User Control

喜夏-厌秋 提交于 2019-12-09 13:56:08
问题 I am trying to use the CefSharp CLR bindings for the Chromium Embedded Framework to create an alternative web browser control that we can embed into an application that only supports legacy ActiveX controls (WonderWare InTouch HMI) in an attempt to gain some HTML5 support for some reeaaallly old machines. So far, I've created an Interop User Control using the Microsoft InteropForms Toolkit and embedded a CefSharp.WinForms WebView onto the control in a pretty bare-bones manner, i.e. Private

How to restrict CefSharp Browser to given domain

房东的猫 提交于 2019-12-09 13:40:00
问题 I would like to prevent my application to display web pages other than from a certain domain (i.e. example.com). My initial idea was to check the request URL in the OnBeforeBrowse event handler. public bool OnBeforeBrowse(IWebBrowser browser, IRequest request, bool isRedirect) { return !IsPageAllowed(request.Url); } This looks doable, except for the fact that all embedded resources on a allowed page are also triggering this event. For example, i have a YouTube video embedded on my page there

CEF3 single process mode in production

帅比萌擦擦* 提交于 2019-12-08 20:35:33
问题 Are there any real pitfalls in using single process mode in production? The official statement seems to discourage this, but so far the application has been stable. CEF1 seems to have been abandoned, and if CEF3 single process is used for dev, then the latter should be at the very least be part of the test suite, and therefore stable. Or is that not true? Also, is CEF3 single process not equivalent to CEF1? The new Battle.net launcher is using CEFl (1453). I wonder if that was for legacy

Different cookie handlers for two chromium instances on one form

南楼画角 提交于 2019-12-08 19:33:32
I'm using DCEF3 on Delphi XE3. Task is : Create different cookie storages for different TChromium instances. Problem : I'm creating different ICefCookieManager instances for each TChromium instances and its returning in GetCookieManager event. Example code: type TForm1 = class(TForm) Button1: TButton; Button2: TButton; Chromium1: TChromium; Chromium2: TChromium; procedure Button1Click(Sender: TObject); procedure Button2Click(Sender: TObject); procedure FormCreate(Sender: TObject); procedure Chromium1GetCookieManager(Sender: TObject; const browser: ICefBrowser; const mainUrl: ustring; out

CefSharp Accessing Encrypted HTML/JS/CSS Files

删除回忆录丶 提交于 2019-12-08 15:29:26
问题 I have been building a Windows desktop application in WPF and it has an embedded browser (CefSharp) that load local HTML/JS/CSS files. These files do not come readily with the application. They will be downloaded from a server each time the program is started. These files are kept in user's application data folder. My concern is that these files, although hidden in the application data folder, user could still find them, open them and read their content. These files actually play the biggest

Getting HTML from Cefsharp Browser

大憨熊 提交于 2019-12-08 07:32:57
问题 I am using CefSharp v55.0 in my WinForm project. After the page is loaded, I want to get HTML code from it. And for that I am using this: private void WebBrowserFrameLoadEnded(object sender, FrameLoadEndEventArgs e) { if (e.Frame.IsMain) { test.ViewSource(); test.GetSourceAsync().ContinueWith(code => { var html = code.Result; }); } } And for the crosscheck, I am also calling test.ViewSource() method, to see that if GetSourceAsync method is getting the whole code or not. Unfortunetely, codes