⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 211105 in webkit


Ignore:
Timestamp:
Jan 24, 2017, 1:22:56 PM (10 years ago)
Author:
matthew_hanson@apple.com
Message:

Merge r211058. rdar://problem/29526875

Location:
branches/safari-603-branch
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-603-branch/Source/WebCore/ChangeLog

    r211103 r211105  
     12017-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
    1212017-01-24  Matthew Hanson  <matthew_hanson@apple.com>
    222
  • branches/safari-603-branch/Source/WebCore/platform/URLParser.cpp

    r209572 r211105  
    14511451                        }
    14521452                        if (UNLIKELY(!isSlash)) {
    1453                             syntaxViolation(c);
    1454                             appendToASCIIBuffer('/');
     1453                            if (m_urlIsSpecial) {
     1454                                syntaxViolation(c);
     1455                                appendToASCIIBuffer('/');
     1456                            }
    14551457                            m_url.m_pathAfterLastSlash = currentPosition(c);
    14561458                        }
  • branches/safari-603-branch/Tools/ChangeLog

    r211103 r211105  
     12017-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
    1152017-01-24  Matthew Hanson  <matthew_hanson@apple.com>
    216
  • branches/safari-603-branch/Tools/TestWebKitAPI/Tests/WebCore/URLParser.cpp

    r209857 r211105  
    631631    checkRelativeURL("?query", "applewebdata://Host", {"applewebdata", "", "", "Host", 0, "", "query", "", "applewebdata://Host?query"});
    632632    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);
    633637
    634638    // 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.