alderlopez / chromiumembedded

Automatically exported from code.google.com/p/chromiumembedded
0 stars 1 forks source link

CEF3: Add external protocol handling support #582

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Add external protocol handling support. See 
http://magpcss.org/ceforum/viewtopic.php?f=10&t=645 for CEF3 information.

Original issue reported on code.google.com by magreenb...@gmail.com on 26 Apr 2012 at 2:19

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi, I've done some work about external protocol support based on cef3 R593. see 
attach files.
Here comes the result:
CEF3 can handle external protocol request now. But after cef3 has launched a 
third_party application, it still display a "-302" error page, which shouldn't 
happen actually. 
I've found that content call handler->OnResponseCompleted(...) in function 
[resource_dispatcher_host_impl.cc]ResourceDispatcherHostImpl::HandleExternalProt
ocol(...) , and this error has been treated as should to do nothing in 
chrome(see DidFailProvisionalLoad(...) in web_content_observer.h), but cef3 has 
defined CefBrowserHostImpl::DidFailProvisionalLoad(...) at 
browser_host_impl.cc, and content invoke it at last, that's why the "-302" 
error page occured.
For now I was just stop it continuing at 
CefBrowserHostImpl::DidFailProvisionalLoad(...) when the error code is -302, is 
it suitable?

Original comment by pengzuo...@gmail.com on 4 May 2012 at 3:38

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by magreenb...@gmail.com on 8 Jun 2012 at 1:08

GoogleCodeExporter commented 9 years ago
Revision 711 adds an OnProtocolExecution callback to CefRequestHandler and 
basic shell execution support on Windows.

@comment#4: Copying large chunks of code from Chromium introduces a significant 
support burden and is generally not advisable. Any complex protocol handling, 
if needed, can be implemented in the client application. Also, the -302 error 
can be handled in the client application OnLoadError callback (see the 
cefclient changes in this revision).

Original comment by magreenb...@gmail.com on 25 Jun 2012 at 9:25