Debugging: OnBeforeResourceLoad handler not called issue

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.

Debugging: OnBeforeResourceLoad handler not called issue

Postby nkanand » Thu Aug 27, 2020 11:33 am

We have a custom cefclient, built using CEF 3945. We perform custom processing during OnBeforeResourceLoad. It appears that OnBeforeResourceLoad, OVERRIDDEN in IBrowserClient implementation, never gets called. Is there a way to debug this?

Also, what is the order of events that gets fired before OnBeforeResourceLoad is called?

Thanks in advance,
nkanand
Techie
 
Posts: 18
Joined: Wed Aug 05, 2020 11:46 pm

Re: Debugging: OnBeforeResourceLoad handler not called issue

Postby magreenblatt » Thu Aug 27, 2020 11:39 am

Check that you're also implementing CefClient::GetRequestHandler and CefRequestHandler::GetResourceRequestHandler. Use the `override` keyword to make sure your method signatures match. CefResourceRequestHandler methods are generally called in the order listed -- see documentation for details.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Debugging: OnBeforeResourceLoad handler not called issue

Postby nkanand » Fri Aug 28, 2020 8:30 pm

thank you. That fixed it
nkanand
Techie
 
Posts: 18
Joined: Wed Aug 05, 2020 11:46 pm


Return to Support Forum

Who is online

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