CEF OnWebKitInitialized() is called only in certain way?

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 OnWebKitInitialized() is called only in certain way?

Postby lolovo » Mon Nov 28, 2016 4:06 pm

Hello everyone!

I've realized that OnWebKitInitialized() is called only if CefApp was passed as argument of CefExecuteProcess otherwise not. Is that a feature or a bug (in CefExecuteProcess comments CefApp can be empty arg and no any words about onWebKitInitialized in this case)?
lolovo
Mentor
 
Posts: 67
Joined: Fri Aug 12, 2016 6:11 am

Re: CEF OnWebKitInitialized() is called only in certain way?

Postby amaitland » Mon Nov 28, 2016 5:26 pm

Are you passing CefApp to CefInitialize in your browser process?
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1292
Joined: Wed Jan 14, 2015 2:35 am

Re: CEF OnWebKitInitialized() is called only in certain way?

Postby amaitland » Mon Nov 28, 2016 5:32 pm

Actually OnWebKitInitialized is a member of CefRenderProcessHandler so it's only called in render processes.

What your seeing is expected. To get a better grasp on the architecture have another read over https://bitbucket.org/chromiumembedded/ ... -processes
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1292
Joined: Wed Jan 14, 2015 2:35 am

Re: CEF OnWebKitInitialized() is called only in certain way?

Postby lolovo » Wed Dec 07, 2016 1:44 pm

Yes, CefApp is passed to CefInitialize. Just curious about the subject...
lolovo
Mentor
 
Posts: 67
Joined: Fri Aug 12, 2016 6:11 am

Re: CEF OnWebKitInitialized() is called only in certain way?

Postby Czarek » Thu Dec 08, 2016 5:32 am

CefInitialize is called only in the browser process. The OnWebkitInitialized callback is called only in the renderer process, when CefApp that implements it is passed to CefExecuteProcess.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: CEF OnWebKitInitialized() is called only in certain way?

Postby lolovo » Fri Dec 09, 2016 3:51 pm

OK. Got it. Thank you all for answers!
lolovo
Mentor
 
Posts: 67
Joined: Fri Aug 12, 2016 6:11 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 96 guests