Bug 142095

Summary: Declaring a custom protocol for "http" causes navigation issues
Product: WebKit Reporter: redswill
Component: WebKit2Assignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=138169
Attachments:
Description Flags
Sample Project none

Description redswill 2015-02-27 11:53:33 PST
Created attachment 247532 [details]
Sample Project

Registering a custom protocol for "http" causes navigation issues, even if the protocol does nothing (i.e. it always returns NO in canInitWithRequest:)

Steps to reproduce:
1. Open & run the attached sample project
2. Search Google for "getbootstrap"
3. Click on the result that takes you to getbootstrap.com
4. Notice how the page fails to load
5. Right click and show inspector, then go to errors
6. Notice how WebKit tries to load the getbootstrap.com resources from google.com

Basically, the custom protocol somehow causes WebKit to get confused about what its current URL is and how to resolve relative paths.