OutSystems / CefGlue

.NET binding for The Chromium Embedded Framework (CEF)
MIT License
277 stars 41 forks source link

Chrome Runtime + Native Chrome UI #161

Closed Xanexis closed 2 months ago

Xanexis commented 2 months ago

Hi, what do I need to do to get a native browser ui(with download tabs, extensions and so on), I have updated cef to 126 version, when I change the variable ChromeRuntime = true the application crashes on CEF.Initialize.....

I have looked at CEF forums forums but there is no information there, need help, maybe a little code snippet, thanks❤️

joaompneves commented 2 months ago

CEF makes it possible to embedded the chromium browser engine (Blink) inside applications. Chrome is an application that uses that same engine plus several other stuff on top (tabs, plugins, ...). They are 2 different things. ChromeRuntime is an api that the extensions use to interact with chrome, regarding that, CEF Forums are the best place to look at.

Xanexis commented 2 months ago

CEF makes it possible to embedded the chromium browser engine (Blink) inside applications. Chrome is an application that uses that same engine plus several other stuff on top (tabs, plugins, ...). They are 2 different things. ChromeRuntime is an api that the extensions use to interact with chrome, regarding that, CEF Forums are the best place to look at.

Fixed. Chrome Runtime + Native Chrome UI

  1. Set cache path
  2. Set locales path(or it's gonna crash)
  3. Set ChromeRuntime = true
  4. Create WpfCefBrowser/AvaloniaCefBrowser object instead of BrowserView
  5. Invoke BaseCefBrowser.CreateBrowser(int width, int height)