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 API | Assignee: | Sam Weinig <sam> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | Keywords: | InRadar | ||||
Priority: | P2 | ||||||
Version: | WebKit Nightly Build | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
Sam Weinig
2015-10-22 16:53:15 PDT
Created attachment 263880 [details]
Patch
Committed r191487: <http://trac.webkit.org/changeset/191487> 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. |