custom scheme & DevTools

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.

custom scheme & DevTools

Postby arvelius » Wed Sep 17, 2014 8:56 am

Hi,

I'm using a custom scheme to display the desired content and I have set the RemoteDebuggingPort. After typing localhost:XXX into chrome it seems to work fine (it lists the currently browsed custom URLs), but nothing happens when I try to view the content and show the console.
Is there a setting or extension I'm missing?

Thanks in advance;)
arvelius
Techie
 
Posts: 46
Joined: Wed Sep 17, 2014 8:37 am

Re: custom scheme & DevTools

Postby magreenblatt » Wed Sep 17, 2014 12:42 pm

What OS and CEF version?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: custom scheme & DevTools

Postby arvelius » Wed Sep 17, 2014 1:57 pm

CEF 3.1916.1707, Windows 8
arvelius
Techie
 
Posts: 46
Joined: Wed Sep 17, 2014 8:37 am

Re: custom scheme & DevTools

Postby magreenblatt » Wed Sep 17, 2014 3:39 pm

I'm unable to reproduce the problem. Does it reproduce for you using the cefclient sample application?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: custom scheme & DevTools

Postby arvelius » Thu Sep 18, 2014 3:13 am

Hello again and thank you for your help,

as I'm not very familiar with C++, so it may take a while until I figure out how to implement the custom scheme handler there (I use a .net wrapper and attachichng a DevTools to a sample application without using the custom scheme works fine). But I may be doing something wrong... this is what I've done (the custom scheme is named 'msg'):

1. in OnRegisterCustomSchemes I add a custom scheme using
Code: Select all
registrar.AddCustomScheme("msg", true, true, false);

2. then I use the RegisterSchemeHandlerFactory to register the handler and set the RemoteDebuggingPort (in my case to value 8085, but I think it doesn't matter)
3. using LoadUrl displays the content in the browser fine
4. putting http://localhost:8085/ into chrome show something like
Code: Select all
Inspectable WebContents
msg://c2e94bef-2e82-4b71-9b22-ed74576de1ea/viewable

5. from what I saw in the sample application, clicking upon that link should display the devtools, but in my case it only navigates to an empty page and nothing more happens
arvelius
Techie
 
Posts: 46
Joined: Wed Sep 17, 2014 8:37 am

Re: custom scheme & DevTools

Postby magreenblatt » Thu Sep 18, 2014 9:05 am

arvelius wrote:5. from what I saw in the sample application, clicking upon that link should display the devtools, but in my case it only navigates to an empty page and nothing more happens

Does clicking on the devtools link work if your application loads a standard URL like google.com?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: custom scheme & DevTools

Postby arvelius » Thu Sep 18, 2014 10:44 am

Hell it doesn't! So it is a problem in my app - now I look like a stupid here:/ I still have no clue what's wrong, but I will try to find a solution
arvelius
Techie
 
Posts: 46
Joined: Wed Sep 17, 2014 8:37 am

Re: custom scheme & DevTools

Postby arvelius » Thu Sep 18, 2014 11:03 am

Ok. The reason was simple - I was missing the devtools_resources.pak

Sorry for bothering you
arvelius
Techie
 
Posts: 46
Joined: Wed Sep 17, 2014 8:37 am

Re: custom scheme & DevTools

Postby magreenblatt » Thu Sep 18, 2014 11:16 am

arvelius wrote:Ok. The reason was simple - I was missing the devtools_resources.pak

Sorry for bothering you

No worries, glad I could help :)
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 92 guests