CEF3 Mac Offscreen OnWebKitInitialized

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.

CEF3 Mac Offscreen OnWebKitInitialized

Postby pkirchner » Thu Jun 23, 2016 7:36 am

Hi,

I wanted to use CEF3 on the Mac with Offscreen Rendering and are looking on how to hook into Javascript.
All the samples and documentation i've found seem to rely on the function OnWebKitInitialized of CefRenderProcessHandler.
However, since i'm using a multi-process model, this handler is never requested from my CefApp, thus OnWebKitInitialized never called to Register my Extension with CEFRegisterExtension().

Is there anything i'm missing?

- Philipp
pkirchner
Newbie
 
Posts: 6
Joined: Sat Jun 07, 2014 3:48 pm

Re: CEF3 Mac Offscreen OnWebKitInitialized

Postby magreenblatt » Thu Jun 23, 2016 8:51 am

Are you passing your CefApp implementation to CefExecuteProcess, and did you implement CefApp::GetRenderProcessHandler()? As you say, it will run in a separate process so you need to attach to that process if you wish to debug it (set breakpoints, etc).
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: CEF3 Mac Offscreen OnWebKitInitialized

Postby pkirchner » Thu Jun 23, 2016 9:57 am

Hi,

thanks for that hint. completely overlooked i have that in my helper :)

Completely Fixed, now onto creating my JavaScript interface :)

Big thanks!
pkirchner
Newbie
 
Posts: 6
Joined: Sat Jun 07, 2014 3:48 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 50 guests