Changeset 212977 in webkit
- Timestamp:
- Feb 24, 2017 4:36:19 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r212953 r212977 1 2017-02-24 Alex Christensen <achristensen@webkit.org> 2 3 Non-special relative URLs should not ignore extra slashes 4 https://bugs.webkit.org/show_bug.cgi?id=168834 5 6 Reviewed by Sam Weinig. 7 8 * web-platform-tests/url/a-element-expected.txt: 9 * web-platform-tests/url/a-element-xhtml-expected.txt: 10 * web-platform-tests/url/url-constructor-expected.txt: 11 1 12 2017-02-24 Alex Christensen <achristensen@webkit.org> 2 13 -
trunk/LayoutTests/imported/w3c/web-platform-tests/url/a-element-expected.txt
r212953 r212977 404 404 PASS Parsing: <sc://?> against <about:blank> 405 405 PASS Parsing: <sc://#> against <about:blank> 406 FAIL Parsing: <///> against <sc://x/> assert_equals: href expected "sc:///" but got "///" 407 FAIL Parsing: <////> against <sc://x/> assert_equals: href expected "sc:////" but got "////" 408 FAIL Parsing: <////x/> against <sc://x/> assert_equals: href expected "sc:////x/" but got "sc://x/" 406 PASS Parsing: <///> against <sc://x/> 407 PASS Parsing: <////> against <sc://x/> 408 PASS Parsing: <////x/> against <sc://x/> 409 409 PASS Parsing: <tftp://foobar.com/someconfig;mode=netascii> against <about:blank> 410 410 PASS Parsing: <telnet://user:pass@foobar.com:23/> against <about:blank> -
trunk/LayoutTests/imported/w3c/web-platform-tests/url/a-element-xhtml-expected.txt
r212953 r212977 404 404 PASS Parsing: <sc://?> against <about:blank> 405 405 PASS Parsing: <sc://#> against <about:blank> 406 FAIL Parsing: <///> against <sc://x/> assert_equals: href expected "sc:///" but got "///" 407 FAIL Parsing: <////> against <sc://x/> assert_equals: href expected "sc:////" but got "////" 408 FAIL Parsing: <////x/> against <sc://x/> assert_equals: href expected "sc:////x/" but got "sc://x/" 406 PASS Parsing: <///> against <sc://x/> 407 PASS Parsing: <////> against <sc://x/> 408 PASS Parsing: <////x/> against <sc://x/> 409 409 PASS Parsing: <tftp://foobar.com/someconfig;mode=netascii> against <about:blank> 410 410 PASS Parsing: <telnet://user:pass@foobar.com:23/> against <about:blank> -
trunk/LayoutTests/imported/w3c/web-platform-tests/url/url-constructor-expected.txt
r212953 r212977 412 412 PASS Parsing: <sc://?> against <about:blank> 413 413 PASS Parsing: <sc://#> against <about:blank> 414 FAIL Parsing: <///> against <sc://x/> Type error 415 FAIL Parsing: <////> against <sc://x/> Type error 416 FAIL Parsing: <////x/> against <sc://x/> assert_equals: href expected "sc:////x/" but got "sc://x/" 414 PASS Parsing: <///> against <sc://x/> 415 PASS Parsing: <////> against <sc://x/> 416 PASS Parsing: <////x/> against <sc://x/> 417 417 PASS Parsing: <tftp://foobar.com/someconfig;mode=netascii> against <about:blank> 418 418 PASS Parsing: <telnet://user:pass@foobar.com:23/> against <about:blank> -
trunk/Source/WebCore/ChangeLog
r212976 r212977 1 2017-02-24 Alex Christensen <achristensen@webkit.org> 2 3 Non-special relative URLs should not ignore extra slashes 4 https://bugs.webkit.org/show_bug.cgi?id=168834 5 6 Reviewed by Sam Weinig. 7 8 Special authority ignore slashes state should, as its name implies, 9 only be reached by special URLs. See https://url.spec.whatwg.org/#relative-slash-state 10 11 Covered by newly passing web platform tests. 12 13 * platform/URLParser.cpp: 14 (WebCore::URLParser::parse): 15 1 16 2017-02-24 Alexey Proskuryakov <ap@apple.com> 2 17 -
trunk/Source/WebCore/platform/URLParser.cpp
r212953 r212977 37 37 38 38 #define URL_PARSER_DEBUGGING 0 39 #define COMPARE_URLPARSERS 040 39 41 40 #if URL_PARSER_DEBUGGING … … 1390 1389 copyURLPartsUntil(base, URLPart::SchemeEnd, c, isUTF8Encoding); 1391 1390 appendToASCIIBuffer("://", 3); 1392 state = State::SpecialAuthorityIgnoreSlashes; 1391 if (m_urlIsSpecial) 1392 state = State::SpecialAuthorityIgnoreSlashes; 1393 else { 1394 m_url.m_userStart = currentPosition(c); 1395 state = State::AuthorityOrHost; 1396 authorityOrHostBegin = c; 1397 } 1393 1398 } else { 1394 1399 copyURLPartsUntil(base, URLPart::PortEnd, c, isUTF8Encoding);
Note: See TracChangeset
for help on using the changeset viewer.