Can't load Chrome extensions

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Can't load Chrome extensions

Postby finder2 » Fri Nov 10, 2023 1:10 pm

I'm trying to load Chrome extension with my CEF based browser (CEF 5938) but without any results.
When i launch it with these paramters nothing happens, extesnion is not active
Code: Select all
--enable-chrome-runtime --load-extension=C:\ext\webrtc2


I also tried with pBrowser->GetHost()->GetRequestContext()->LoadExtension(extensionPath, nullptr, nullptr); but without any results.

When i launch cefclient.exe or cefsimple.exe with the same parameter extension is working.
I can't find any info in logs.

Also i noticed when I launch cefclient.exe or cefsimple.exe with --enable-chrome-runtime i can see address bar and tree dots (menu bar) from Chrome when I run my browser i can't see it.

Where should i dig to load extensions and get them working.
finder2
Mentor
 
Posts: 51
Joined: Fri Jun 13, 2014 1:33 am

Re: Can't load Chrome extensions

Postby magreenblatt » Fri Nov 10, 2023 6:16 pm

To enable Chrome runtime in an application you need to set CefSettings.chrome_runtime = true. There are also other requirements for Chrome runtime usage, see https://bitbucket.org/chromiumembedded/ ... eader-cef3
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Can't load Chrome extensions

Postby finder2 » Sat Nov 11, 2023 11:31 am

Thanks, it's working now.
finder2
Mentor
 
Posts: 51
Joined: Fri Jun 13, 2014 1:33 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 198 guests