CEF and Chome 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.

CEF and Chome extensions

Postby dmklementiev » Wed Jan 29, 2020 6:56 pm

Could you please suggest what would be the right way to start with enabling chrome extensions in CEF? I would like to try something simple like "chrome://extensions -> Load unpacked" in Chrome and use background.js that injects contentScript.js.
dmklementiev
Mentor
 
Posts: 54
Joined: Wed Jul 31, 2019 7:11 pm

Re: CEF and Chome extensions

Postby amaitland » Wed Jan 29, 2020 9:50 pm

Start by reading https://bitbucket.org/chromiumembedded/ ... extensions

Only a subset of the Chrome extension API is supported.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1291
Joined: Wed Jan 14, 2015 2:35 am

Re: CEF and Chome extensions

Postby dmklementiev » Mon Feb 03, 2020 4:20 pm

Thank you amaitland. I've done some reading and have a few questions:

1. Is it correct that I cannot use my background JS and need to write corresponding code in c/c++ using provided CEF APIs?
2. I am using WebSocket to communicate between an extension and my backend. implementing WebSocket in JS is trivial. Do I need to use a client written in c/c++ for such communication. I have implemented both client and server, so just trying to understand the correct approach.
3. Is there any sample for implementing an extension for CEF?

Thanks again!
dmklementiev
Mentor
 
Posts: 54
Joined: Wed Jul 31, 2019 7:11 pm

Re: CEF and Chome extensions

Postby dmklementiev » Wed Feb 05, 2020 7:56 pm

just bumping it up in case somebody can share the knowledge : )
dmklementiev
Mentor
 
Posts: 54
Joined: Wed Jul 31, 2019 7:11 pm

Re: CEF and Chome extensions

Postby Gu5a90 » Thu Jan 27, 2022 9:40 am

Marshall Greenblatt quote:
"Chrome extensions are unlikely to be supported in the future."

you can check this out:
https://magpcss.org/ceforum/viewtopic.php?f=6&t=10242
there's links to CEF-forum topic of how to implement an extension system in your own application using JS bindings.

I'll be glad if someone can share some basic impl of how to fetch an extension source code and bind it as shown in those snippets.
:mrgreen:
Gu5a90
Newbie
 
Posts: 3
Joined: Thu Nov 25, 2021 8:46 am


Return to Support Forum

Who is online

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