Registering custom schema handlers with CEF 2357

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.

Re: Registering custom schema handlers with CEF 2357

Postby azam » Tue Aug 18, 2015 1:58 pm

We get the main frame and then load it using the LoadURL() call.

We load it using CefFrame->LoadURL() to load the page.
azam
Techie
 
Posts: 11
Joined: Wed Jun 04, 2014 4:31 am

Re: Registering custom schema handlers with CEF 2357

Postby azam » Tue Aug 18, 2015 2:34 pm

We are using below version of CEF 2357 branch.

b21a645 Add 2357 release branch
azam
Techie
 
Posts: 11
Joined: Wed Jun 04, 2014 4:31 am

Re: Registering custom schema handlers with CEF 2357

Postby magreenblatt » Tue Aug 18, 2015 5:10 pm

azam wrote:We are using below version of CEF 2357 branch.

b21a645 Add 2357 release branch

This revision is almost 4 months old. You should use a current 2357 branch build.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Registering custom schema handlers with CEF 2357

Postby azam » Wed Aug 26, 2015 10:07 am

With CEF2357 branch the scheme handler does not work until we register it with requestContext.

CefRequestContext::CreateContext(contextSettings, requestContextHandler);
requestContext->RegisterSchemeHandlerFactory("qrc",
"resources",
new CustomSchemeHandlerFactory);

Is this really required with CEF2357 branch?
azam
Techie
 
Posts: 11
Joined: Wed Jun 04, 2014 4:31 am

Re: Registering custom schema handlers with CEF 2357

Postby magreenblatt » Wed Aug 26, 2015 11:00 am

If you are using a custom request context then yes. You can alternately use the global request context (pass NULL to functions that take a request context argument).
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Registering custom schema handlers with CEF 2357

Postby callum » Thu Sep 03, 2015 8:58 pm

What was the outcome here? I'm also seeing my scheme handling code break after a move to 2357.
callum
Expert
 
Posts: 326
Joined: Mon Feb 23, 2015 6:19 pm

Re: Registering custom schema handlers with CEF 2357

Postby magreenblatt » Fri Sep 04, 2015 3:19 am

callum wrote:What was the outcome here? I'm also seeing my scheme handling code break after a move to 2357.

If you are using a custom request context then you must register the scheme handlers with that context.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Previous

Return to Support Forum

Who is online

Users browsing this forum: No registered users and 31 guests