chromium-embedded

Different cookie handlers for two chromium instances on one form

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-08 06:21:07
问题 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

Chromium embedded framework: Creating an object fails when using “ExecuteFunctionWithContext”

别等时光非礼了梦想. 提交于 2019-12-07 16:21:40
问题 Overview I am using chromium embedded framework (cef) on Delphi 2009, it is the latest release. Error I can use ExecuteFunctionWithContext to successfully execute a JavaScript callback routine and I can supply it with arguments. However, when I try and use TCefv8ValueRef.CreateObject(nil); an access violation occurs in the libcef library. Assumptions Pushing an argument to the JavaScript callback works for TCefv8ValueRef.CreateString and all the other Cefv8Value types. The TCefv8ValueRef

Chromium Embedded Framework bind key press

江枫思渺然 提交于 2019-12-07 16:02:22
问题 I saw this thread on the official forum of Chromium Embedded Framework but it seems that there were no solutions given. To be honest, I'm not comfortable with C++ platform. Could you help me provide a snippet that binds CEF to the webapp. I wanted to control the application using the default controls: ALT + F4 - close F5 - refresh browser 回答1: Short Version: Implement CefKeyboardHandler , specifically OnPreKeyEvent() ClientHandler::OnPreKeyEvent(CefRefPtr<CefBrowser> browser, const

JCEF ICU Check Failed

和自甴很熟 提交于 2019-12-07 12:30:53
问题 I seem to be continually coming against a wall in getting chromium running with JCEF in eclipse. I was able to get to the point where the native functions are discovered but am still unable to complete initialization. I set the LD_PRELOAD variable. I am running both the MainFrame.java class and custom Scala code and run into the same problem in each. Is there a way to resolve this? System: OS: Ubuntu 16.04 JCEF version 3 CEF version 3 Java Jdk 8 Structure and Configuration: Everything is

Chrome Dev Tools export Elements HTML

耗尽温柔 提交于 2019-12-07 04:38:00
问题 To debug my chromium-embedded application I am looking for a function to get the source code of the web page from withing the chrome developer tools. I basically want the HTML tree shown in the 'Elements' tab, the actual HTML DOM, as HTML text. Does this functionality exist? How can I use it? As I use CEF I do only have the chrome dev tools available and not the full browser. I cannot use the right-click context menu because I want to see the current manipulated DOM and not the original

How to receive drag move and drag drop events using CefSharp winforms

点点圈 提交于 2019-12-06 14:48:31
I am using the windowsformshost and trying to get dragover and drop events. I have set allowdrop on the WPF window, Windowsformshost and the ChromiumWebBrowser. I can understand that the WPF window will not get the event due to the windowsformshost airspace issues. But I dont understand why the windowsformshost or the ChromiumWebBrowser does not get any of the events. It appears they are swallowed and not passed on by CEF/CefSharp. How can I handle the events and/or what do I need to disable in CEF/CefSharp? As I am moving from pure WPF CefSharp I have implemented a dragenter, dragmove and

Delphi TChromium / DCEF3 - Constant Access Violations

人盡茶涼 提交于 2019-12-06 12:37:27
问题 I'm trying to use DCEF3 TChromium as a replacement for TWebbrowser component. I downloaded the packages and installed it on my IDE (Delphi 2007). I'm testing the demo on demos\guiclient and when i try to open certain web pages, i get tons of Access Violation exceptions and my app crashes. If i'm inside Delphi, i get this exception before Delphi itself crashes : 'Assertion failure : 'item.src' in \win32scr\DBKIMPL.CPP' at line 2691' One example of a page that has this problem is www

DCEF3 - Delphi Chromium Embedded - communication between Javascript and application code

狂风中的少年 提交于 2019-12-06 05:50:03
问题 I'm using DCEF3, revision 24038bd3a600, and I should want to communicate between Javascript code in browser and Delphi code of application. I know how it can be accomplished from Delphi code and Javascript, by using framework's method 'ExecuteJavascript', but what about the reverse (from Javascript to Delphi/application code) ? I haven't found such a situation in demos/examples (GUIclient, specifically...). 回答1: There is a guiclient demo if official source code to do this. Look at main.pas

Background process on the native function at Chromium Embedded Framework

故事扮演 提交于 2019-12-06 05:48:31
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::OnContextCreated( CefRefPtr<CefBrowser> browser, CefRefPtr<CefFrame> frame, CefRefPtr<CefV8Context> context)

How to set different cookies for different instances of Chromium embedded browser

和自甴很熟 提交于 2019-12-06 05:11:58
问题 I'm working on an application that requires multiple embedded instances and each of this instance logins to the same external site with different authentication details. I'm using CEF (Chromium embedded framework ) in Delphi , I have a folder that i stored the cookies on it for different instance of my browsers , So i have this code in the first unit procedure TForm2.Button1Click(Sender: TObject); begin form33 := Tform3.Create(nil); form33.Show; end; when the form33 created procedure TForm3