FAQ Database Discussion Community


How in Chromium Embedded detect if we are running as subprocess?

c++,chromium-embedded
When using single executable for Chromium Embedded Framework 3 subprocess, how can program detect if it is running as main executable or as a subprocess? I found that main process runs with command line switch --type=zygote, but subprocesses are not. Will it always be correct that (in pseudo language): if...

Java Chromium Embedded Framework (JCEF) usage of Chromium command lines

java,command-line,chromium-embedded
I try to set the --ignore-gpu-blacklist argument to JCEF but I can't find a way. The method I should be using is this one: CefApp::onBeforeCommandLineProcessing(String, CefCommandLine). But I can't find an example or good instructions of how to do it. CefCommandLine is an interface and I cannot find any implementation....

Working with locally built web page in CefSharp

c#,chromium-embedded,cefsharp
I have a CefSharp browser created in my Winform and I need to dynamically build an HTML page in memory and then have CefSharp render it. Ideally I would like to pass the constructor a string with the HTML in it but it is expecting a URL. The answer is...

CefSharp doesn't run in WIndows 7

.net,windows,chromium-embedded,cefsharp
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...

Compile Chromium-Embedded 3 project statically with libcef_static.lib

c++,static-linking,chromium-embedded
I've downloaded CEF 3.2272.2029 from CEF Builds website. It is compiled OK. Then according to CEF Linking different runtime libraries I've tried to compile cefsimple example with libcef_static.lib (previously of course compiled it as in build instructions). So, I replaced input Libraries in Visual Studio: delete libcef.lib and libcef_dll_wrapper.lib and...

Chrome Dev Tools export Elements HTML

html,google-chrome-devtools,chromium-embedded
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...

How to change the URL using CefSharp WinForms

c#,winforms,chromium-embedded
So, I decided to give CefSharp another go, grabbed the CefSharp.Winforms nuget, and dropped in the following code : public CefSharp.WinForms.ChromiumWebBrowser browser; public Form1() { InitializeComponent(); browser=new CefSharp.WinForms.ChromiumWebBrowser( "http://www.imdb.com" ) { Dock=DockStyle.Fill, }; tabPage2.Controls.Add( browser ); } ... which works. It creates the webbrowser control, and loads the page (YAY...

CEFSharp Winforms display a loadin message while the website loads?

winforms,chromium-embedded,cefsharp
Am using Cefsharp 39.0.0 to load a webpage inside a winform. Now while the page loads the form is blank. How do I show a loading gif? public Browser() { InitializeComponent(); string clientURL = "www.imdb.com"; ChromiumWebBrowser browser = new ChromiumWebBrowser(clientURL); browser.Dock = DockStyle.Fill; toolStripContainer.ContentPanel.Controls.Add(browser); browser.RegisterJsObject("camera", new Camera()); } I looked...

How to restrict CefSharp Browser to given domain

wpf,chromium-embedded,cefsharp
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...

Context.Enter always fails in CEF3

delphi,chromium-embedded
I'm having some issues when converting a CEF1 project to CEF3, using the latest Delphi Chromium Embedded code in the repo (3.1750.1738). To be brief, I used to have an extension that I would register. Then on the html side, I would use a native call to register a javascript...

blob urls and cross-origin errors with DCEF GetResourceHandler

delphi,chromium-embedded
I've implemented a GetResourceHandler call in Delphi 2007 using the latest Delphi Chromium Embedded wrapper (which uses libcef 3.1750.1738, I believe compiled by the DCEF3 creator). I based my handler on some python code posted on the magpcss site (with some changes). All is working well, except for a couple...

Java Chromium Embedded Framework (JCEF) save mhtml

java,chromium,chromium-embedded
Is there a way to save an mhtml/mht file using JCEF? Or generically with chromium? I need to save the page in one file. I suppose it possibile, but I didn't find a way. EDIT* I know that it is possibile using chrome using flags but I need to do...

Get bundle path from c++ without using foundation

c++,objective-c,objective-c++,chromium-embedded
I am currently developing on a Chromium Embedded framework app. The project consists of a client and a helper. I need to know the bundle path from the helper, easy just use the methods of foundation.... Well I can't since I can't use foundation in the helper. The client is...

CEFSharp RegisterJsObject reference error

wpf,chromium-embedded,cefsharp
I know this question has been beaten to death with this library but despite the examples available, I'm having a hard time getting Javascript bindings to work with WPF. I'm using CefSharp.Common 37.0.0 The Javascript error that I'm getting is: Uncaught ReferenceError: myClass is not defined Below, you will find...

chromiumembedded mp4 request cancelled

video,chromium-embedded,off-screen
I'm using CEF in offscreen mode to display web pages in my application. All the sites and functionality I've tried so far worked fine till I tried video. Youtube and other sites work fine but I created a small page to autoplay an MP4 and it didn't work. <html> <body>...

CefSharp 3 always failing Cef.Initialize()

chromium-embedded,cefsharp
I recently tried making the jump from CefSharp 1.25.7 to the most recent build (39.0.0-pre02). I got the files through NuGet but I copied them into my project separately since they have to be included in our repository to share with other developers. I believe I got all of the...

How to retrieve an XHR response?

delphi,delphi-2007,chromium-embedded
Basically, I use Chromium to show a website on which I have no control. When the user clicks on a specific button, an XHR request is sent; and I would like to be able to retrieve the answer. So, let's say that the request sends A and the server replies...

How to handle an event message while using chrome embedded framework (CEF)?

c++,winapi,visual-c++,chromium-embedded
I'm using Chromium Embedded Framework(CEF) to develop a windows desktop application(using C++/Win32, No MFC). I have used the sample "cefsimple" project and extended on it till now. I have added "Handlers" for keyboard events etc. Everything works fine till now, I can get the handle of the browser window and...

CefSharp.Wpf WebView cannot accept input and the link clicked no response

wpf,chromium-embedded
I used CefSharp.Wpf in my application. version: 1.25.7. I hosted the webpage via CefSharp WebView. I can host my webpage in it. But the TextBox in the WebView cannot accept the input, and the hyperlink cannot response. Here is my code. I created a Wpf Usercontrol named WebPageOemViewer. Xaml: <UserControl...

How to integrate chromium browser project in Qt Creator in Ubuntu

c++,qt,ubuntu,chromium,chromium-embedded
I have managed to understand the structure of chromium browser and now I would like to use an IDE in order to make some changes for a personal project on a Ubuntu Trusty machine ( 14.04 ). It is already compiled and I just want to use an IDE to...

Why is this library not found on Mac OS X?

osx,cocoa,chromium-embedded
I'm making a small proof of concept of using CEF on MacOSX. I took the Chromium Embedded Framework.framework and changed it's rpath by running: install_name_tool -id "@rpath/Chromium Embedded Framework.framework/Chromium Embedded Framework" Chromium\ Embedded\ Framework.framework/Chromium\ Embedded\ Framework and then compiled and run the program like this: $ ./cefobjchelper.app/Contents/MacOS/cefobjchelper dyld: Library not...

Disable mouse cursors on entire page using CSS

css,mouse,chromium-embedded
I want to remove the mouse cursor on the entire page. In Chromium 13.0 the following was working well. But now after an upgrade to Chromium 40.0 it is no longer working. On the one hand the mouse cursor is visible and on the other hand the user cannot use...