Bug 150481

Summary: Navigations on the same host (but with different schemes and ports) should not trigger universal links
Product: WebKit Reporter: Sam Weinig <sam>
Component: WebKit APIAssignee: Sam Weinig <sam>
Status: RESOLVED FIXED    
Severity: Normal Keywords: InRadar
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch mitz: review+

Sam Weinig
Reported 2015-10-22 16:53:15 PDT
Navigating from a page on http://foo.com to a page on https://foo.com should not trigger app links.
Attachments
Patch (16.65 KB, patch)
2015-10-22 17:05 PDT, Sam Weinig
mitz: review+
Sam Weinig
Comment 1 2015-10-22 16:55:04 PDT
Sam Weinig
Comment 2 2015-10-22 17:05:38 PDT
Sam Weinig
Comment 3 2015-10-22 17:10:01 PDT
Darin Adler
Comment 4 2015-10-23 09:35:27 PDT
Comment on attachment 263880 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=263880&action=review > Source/WebCore/platform/URL.cpp:1612 > + for (int i = 0; i < hostLengthA; ++i) { > + if (a.string()[hostStartA + i] != b.string()[hostStartB + i]) > + return false; > + } No ASCII case folding? Should consider using StringView::substring rather than writing out the loop. Might even want URL member functions that return StringView for pieces of the URL like the host in place inside the URL.
Note You need to log in before you can comment on or make changes to this bug.