Bug 145969

Summary: [SOUP] Custom URI schemes don't work for requests containing a fragment identifier
Product: WebKit Reporter: Carlos Garcia Campos <cgarcia>
Component: WebKit2Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: gustavo, svillar
Priority: P2 Keywords: Gtk, Soup
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 145968, 146014, 146075    
Bug Blocks:    
Attachments:
Description Flags
Patch svillar: review+

Description Carlos Garcia Campos 2015-06-15 03:46:05 PDT
For URIs like foo:bar#baz, what the custom protocol manager receives in the UI process is foo:bar, so the user can't handle fragments. Wrote a test case for GTK, see:

/webkit2/WebKitWebContext/uri-scheme: **
ERROR:../../Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebContext.cpp:220:void testWebContextURIScheme(URISchemeTest*, gconstpointer): assertion failed (webkit_uri_scheme_request_get_uri(test->m_uriSchemeRequest.get()) == "echo:with#fragment"): ("echo:with" == "echo:with#fragment")
Comment 1 Carlos Garcia Campos 2015-06-15 08:44:54 PDT
Created attachment 254877 [details]
Patch
Comment 2 Sergio Villar Senin 2015-06-15 09:33:25 PDT
Comment on attachment 254877 [details]
Patch

r=me
Comment 3 Carlos Garcia Campos 2015-06-15 09:37:10 PDT
Committed r185553: <http://trac.webkit.org/changeset/185553>