Changeset 211105 in webkit
- Timestamp:
- Jan 24, 2017, 1:22:56 PM (10 years ago)
- Location:
- branches/safari-603-branch
- Files:
-
- 4 edited
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/platform/URLParser.cpp (modified) (1 diff)
-
Tools/ChangeLog (modified) (1 diff)
-
Tools/TestWebKitAPI/Tests/WebCore/URLParser.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-603-branch/Source/WebCore/ChangeLog
r211103 r211105 1 2017-01-24 Matthew Hanson <matthew_hanson@apple.com> 2 3 Merge r211058. rdar://problem/29526875 4 5 2017-01-23 Alex Christensen <achristensen@webkit.org> 6 7 Make URLs with non-special schemes and a query or fragment but no slash after the host more compatible 8 https://bugs.webkit.org/show_bug.cgi?id=167317 9 <rdar://problem/29526875> 10 11 Reviewed by Sam Weinig. 12 13 This is currently being added to the URL spec in https://github.com/whatwg/url/issues/212 14 Covered by new API tests. 15 16 * platform/URLParser.cpp: 17 (WebCore::URLParser::parse): 18 Only add a slash if there wasn't one if the URL has a special scheme. 19 This new behavior matches the old behavior of URL::parse. 20 1 21 2017-01-24 Matthew Hanson <matthew_hanson@apple.com> 2 22 -
branches/safari-603-branch/Source/WebCore/platform/URLParser.cpp
r209572 r211105 1451 1451 } 1452 1452 if (UNLIKELY(!isSlash)) { 1453 syntaxViolation(c); 1454 appendToASCIIBuffer('/'); 1453 if (m_urlIsSpecial) { 1454 syntaxViolation(c); 1455 appendToASCIIBuffer('/'); 1456 } 1455 1457 m_url.m_pathAfterLastSlash = currentPosition(c); 1456 1458 } -
branches/safari-603-branch/Tools/ChangeLog
r211103 r211105 1 2017-01-24 Matthew Hanson <matthew_hanson@apple.com> 2 3 Merge r211058. rdar://problem/29526875 4 5 2017-01-23 Alex Christensen <achristensen@webkit.org> 6 7 Make URLs with non-special schemes and a query or fragment but no slash after the host more compatible 8 https://bugs.webkit.org/show_bug.cgi?id=167317 9 10 Reviewed by Sam Weinig. 11 12 * TestWebKitAPI/Tests/WebCore/URLParser.cpp: 13 (TestWebKitAPI::TEST_F): 14 1 15 2017-01-24 Matthew Hanson <matthew_hanson@apple.com> 2 16 -
branches/safari-603-branch/Tools/TestWebKitAPI/Tests/WebCore/URLParser.cpp
r209857 r211105 631 631 checkRelativeURL("?query", "applewebdata://Host", {"applewebdata", "", "", "Host", 0, "", "query", "", "applewebdata://Host?query"}); 632 632 checkRelativeURL("#fragment", "applewebdata://Host", {"applewebdata", "", "", "Host", 0, "", "", "fragment", "applewebdata://Host#fragment"}); 633 checkRelativeURL("notspecial://something?", "file:////var//containers//stuff/", {"notspecial", "", "", "something", 0, "", "", "", "notspecial://something?"}, TestTabs::No); 634 checkRelativeURL("notspecial://something#", "file:////var//containers//stuff/", {"notspecial", "", "", "something", 0, "", "", "", "notspecial://something#"}, TestTabs::No); 635 checkRelativeURL("http://something?", "file:////var//containers//stuff/", {"http", "", "", "something", 0, "/", "", "", "http://something/?"}, TestTabs::No); 636 checkRelativeURL("http://something#", "file:////var//containers//stuff/", {"http", "", "", "something", 0, "/", "", "", "http://something/#"}, TestTabs::No); 633 637 634 638 // The checking of slashes in SpecialAuthoritySlashes needed to get this to pass contradicts what is in the spec,
Note:
See TracChangeset
for help on using the changeset viewer.