chromium-embedded

Visual Studio is not letting me add CefSharpBrowserControl to a form via the designer

北慕城南 提交于 2019-12-14 03:27:40
问题 So I decided to try out the CefSharp extension, and what's the first thing I encounter? An error that doesn't let me use the add-on. This is ridiculously frustrating because I've done every single thing even the administrator or creator has said to do on any forum I've been on. I tried to just compile the source code on the CEFSharp's GitHub, but that didn't work. If I'm brutally honest, I think that they should just provide a pre-compiled .dll file or group of .dll files that you can just

Cefsharp didn't start on Client Machine?

浪子不回头ぞ 提交于 2019-12-14 01:12:13
问题 What to add with .net 4.5.1, Visual C++ 2012 Redistribution inorder to make cefsharp work on Client machine?. I installed both .net 4.5.1, Visual C++ 2012 Redistribution package and the dlls libcef.dll icudt.dll CefSharp.dll CefSharp.WinForms.dll are all present, the cefsharp form didn't open up. Its showing exception "Could not load file or assembly cefsharp.dll". I have tried installing Visual C++ 2008,2010,2012 versions too. But it still didn't show up. 回答1: If you have this same problem

Changing the user agent in Chromium Embedded 3 (DCEF3) (CefVCL)

﹥>﹥吖頭↗ 提交于 2019-12-13 17:09:45
问题 I'm trying to modify the User Agent of TChromium and I found no procedure for this, in case it is using CefVCL. Already by ceflib looks like it has to yes, I saw a variable "settings" that receives a value "user_agent" but the VCL already has, will have or is not possible this way? 回答1: There is no built in way to do this. In my experience, the user-agent setting does nothing.. so you have to edit ceflib.pas directly (line ~8532) to achieve this effect. settings.user_agent := cefstring

Embedding CEF3 with existing application

落爺英雄遲暮 提交于 2019-12-13 07:56:49
问题 I have a running WIN32 application. There a window in this application where I want to show web content using CEF3. But, I am facing problems and the entire window becomes white without showing any web page content. So I have the following questions: Is it possible to use CEF3 with existing message loop in application? I dont want to call the CEF message loop, it may impact other things in my application. Is it absolutely necessary to use a message window as in the sample application? I am

Unable to deploy CefSharp application

两盒软妹~` 提交于 2019-12-13 05:32:37
问题 I'm trying to run my CefSharp application on a separate computer other than my development machine, but I'm unable to. I built it in Release for the x64 platform, and moved the entire contents of the build folder over to my other computer. I tried running all the executables in the build folder, but none of them would work; when executed, they would not appear on screen, and after some time a window would open up with the generic "this program has stopped working" windows crash dialogue. I

Clear Cookies in TChromium

自闭症网瘾萝莉.ら 提交于 2019-12-13 02:14:53
问题 How to clear cookies in CEF3.1547 I have tried the following solution however this simply does nothing. Cookies are still present. Is there a better solution than this? procedure TForm1.Button1Click(Sender: TObject); var CookieManager: ICefCookieManager; begin // login to site CookieManager := TCefCookieManagerRef.GetGlobalManager; CookieManager.VisitAllCookiesProc( function(const name, value, domain, path: ustring; secure, httponly, hasExpires: Boolean; const creation, lastAccess, expires:

Cache Busting not working in CefSharp

时光怂恿深爱的人放手 提交于 2019-12-13 01:57:04
问题 I am using cefsharp (chromium embedded framework for .NET) to host a web application that uses require js to load in most of my javascript modules. To speed up my application I have enabled cacheing via response headers "Cache-Control: public,max-age=864000" for all my static content. When I deploy a new version of my web application i am appending a version number that gets incremented with every deployment in the urlArgs param of require.config() to perform a "cache bust" when my content

C# ChromiumWebBrowser: Prevent control from stealing focus

£可爱£侵袭症+ 提交于 2019-12-12 12:32:37
问题 I'm making a program that has a Form with a ChromiumWebBrowser in it. The navigation is done automatically. When webbrowser complete it's task, I'll dispose it, create a new webbrowser, add it to form, and load a new address. But, when the new webbrowser was created and added to form, the program jumps in front of what ever other program is in the top with focus. Example: I start my program, press the button to start its task, open notepad to type some text and my program jumps in front of it

How I can get DrawingArea window handle in Gtk3?

柔情痞子 提交于 2019-12-12 11:26:17
问题 I get this code on CEF Python 3 (link) ... self.container = gtk.DrawingArea() self.container.set_property('can-focus', True) self.container.connect('size-allocate', self.OnSize) self.container.show() ... windowID = self.container.get_window().handle windowInfo = cefpython.WindowInfo() windowInfo.SetAsChild(windowID) self.browser = cefpython.CreateBrowserSync(windowInfo, browserSettings={}, navigateUrl=GetApplicationPath('example.html')) ... This code [ self.container.get_window().handle ] don

Cefpython app with html/js files in local filesystem

旧巷老猫 提交于 2019-12-12 09:54:32
问题 I'm trying to make a hybrid python-js application with cefpython. I would like to have: JS and HTML files local to the cef python app (e.g. in './html', './js', etc) Load one of the HTML files as the initial page Avoid any CORS issues with files accessing each other (e.g. between directories) The following seems to work to load the first page: browser = cef.CreateBrowserSync(url='file:///html/index.html', window_title="Rulr 2.0") However, I then hit CORS issues. Do I need to run a webserver