chromium-embedded

DynamicObjects don't register with RegisterJsObject with Chromium / CefSharp

混江龙づ霸主 提交于 2019-12-25 16:04:33
问题 I created a dynamic object and try to register it with RegisterJsObject. However, the javascript code on the client side doesn't recongize the register js object and I can't call any of the functions that are par tof the dynamic object. Ex. C# code: dynamic obj = new ExpandoObject(); obj.FullName = new Action(() => { Console.WriteLine("FullName method called"); }); Cef.Initialize(new CefSettings()); ChromiumWebBrowser browser = new ChromiumWebBrowser(""); browser.RegisterJsObject("pesonObj",

Building and debugging Chromium using visual studio giving error : error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'

邮差的信 提交于 2019-12-25 06:55:08
问题 I want to debug the chromium code to check how it compiles the javascript code. I have downloaded the chromium code and trying to build cef solution file using visual studio but I am getting the following error: error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' \third_party\libjpeg_turbo\jccolss2-64.obj cefclient error MSB3073: The command " call ninja.exe -C ..\out\Debug\ cefclient " exited with code 1. D:\Ishan\Chromium\Chromium\chromium\src\cef\cefclient

Registering Custom ``backend://` scheme is not working in CEF

匆匆过客 提交于 2019-12-24 14:21:50
问题 In my CEF Application I register a custom scheme handler for the scheme backend:// . As done in scheme_handler example I call in every process (Rendere Process and Browser-Process) AddCustomScheme : void registerCustomSchemes(CefRawPtr<CefSchemeRegistrar> registrar) { for(auto& scheme : getCustomSchemes()) // "backend" and "client" { registrar->AddCustomScheme(scheme, true /* is standart*/, false /* is local */, false /* is display_isolated */, true /* is secure */, true /* is cors enabled*/,

How can I support window.external.xxx in cef framework

拟墨画扇 提交于 2019-12-24 07:38:06
问题 I want to switch from an embedded IE activeX to the libcef framework. My web project's javascript call C++ function use window.external.xxx method. But I can't get window.external object in cef framework. I try to bind my c++ function in window object. sadly, it doesn't work for me. My code for binding c++ function to window object is like that: CefRefPtr<CefV8Value> ptrGlobalObj = context->GetGlobal(); CefRefPtr<CefV8Value> jsCallOrthoLink = CefV8Value::CreateFunction(_T("CallOrthoLink"), m

VB.Net: How to install plugins/extensions in CEF?

你。 提交于 2019-12-24 04:52:07
问题 I am making a vb.net web browser, and for the browsing engine I am using ChromeWebBrowser.Net. To improve the users browsing experience, I want to add the plugin "Adblock Plus". I cannot figure out how to add this plugin, in my code I have ChromeWebBrowser1.AddPluginDir("C:\MySurf Plugins\") I don't know what type of files/folders I need to put in the custom plugin directory in order for adblock to work. I copied the plugin folder from Google Chrome, and added it in that folder, but it did

VB.Net: How to install plugins/extensions in CEF?

眉间皱痕 提交于 2019-12-24 04:52:01
问题 I am making a vb.net web browser, and for the browsing engine I am using ChromeWebBrowser.Net. To improve the users browsing experience, I want to add the plugin "Adblock Plus". I cannot figure out how to add this plugin, in my code I have ChromeWebBrowser1.AddPluginDir("C:\MySurf Plugins\") I don't know what type of files/folders I need to put in the custom plugin directory in order for adblock to work. I copied the plugin folder from Google Chrome, and added it in that folder, but it did

Last revision Chromium Embedded Framework 3

你说的曾经没有我的故事 提交于 2019-12-24 02:09:51
问题 Where can I find the latest revision of the Chromium Embedded Framework 3 for Delphi? I downloaded it from this page with TortoiseSVN: http://code.google.com/p/dcef3/ because CEF1 gave too many problems, but it is a very old revision, there is a download of the revision 24, but the latest revision is 823. Could you tell me where to find the latest version for Delphi-XE2? Thank you very much. 回答1: There are three projects that have been mentioned here: chromiumembedded, latest revision 996

Delphi Chromium Embedded - Clear browser cache

那年仲夏 提交于 2019-12-23 22:08:42
问题 I am using Delphi Chromium Embedded in my application. I have the following question: is there a way to clear cache of browser ? 回答1: I also tried to NOT use the cache, by setting the options right. I set up both options (Page and Application cache) to Disabled, but still, my page was using the cache. The solution I found was to use chromium1.RecreateBrowser(url); This one cleared my cache. 回答2: To avoid using cache: (1) do not set GlobalCEFApp.Cache in your program code and (2) set these two

How make a click on a chromium browser link open in the default browser?

孤街醉人 提交于 2019-12-23 20:21:22
问题 I want to achieve that when a user clicks on a hyperlink inside a TChromium browser page, the new page opens in his default browser. 回答1: In the OnBeforeBrowse event check if the navType parameter equals to NAVTYPE_LINKCLICKED and if so, return True to the Result parameter (which will cancel the request for Chromium) and call e.g. ShellExecute passing the request.Url value to open the link in the user's default browser: uses ShellAPI, ceflib; procedure TForm1.Chromium1BeforeBrowse(Sender:

CefSharp.Winforms close tab by javascript

╄→尐↘猪︶ㄣ 提交于 2019-12-23 05:43:13
问题 I'm using CefSharp.WinForms.ChromiumWebBrowser v41.0.1 in my project. There are many tabs, each tab has a chromium webbrowser. I try to close one of these tabs by javascript function window.close(). But it also closes both all tabs and my program. What is the main reason? And is there any way to close only one tab by javascript? 回答1: I believe you'll find that CEF sends a WM_CLOSE message to the top level window as it's default behavior. One option is to upgrade to the 43.0.0-pre02 release,