Changeset 212470 in webkit
- Timestamp:
- Feb 16, 2017 3:13:45 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r212467 r212470 1 2017-02-16 Alex Christensen <achristensen@webkit.org> 2 3 Special URLs without a host are invalid 4 https://bugs.webkit.org/show_bug.cgi?id=168461 5 6 Reviewed by Tim Horton. 7 8 * fast/dom/DOMURL/set-href-attribute-protocol.html: 9 * fast/dom/HTMLAnchorElement/script-tests/set-href-attribute-protocol.js: 10 Rebase tests. The HTMLAnchorElement test is a little strange, but it'll be cleaned up once 11 url-setters.html in the web platform tests is cleaned up. 12 1 13 2017-02-16 Ryan Haddad <ryanhaddad@apple.com> 2 14 -
trunk/LayoutTests/fast/dom/DOMURL/set-href-attribute-protocol.html
r207162 r212470 73 73 a.href = "foo:??bar"; 74 74 a.protocol = "http"; 75 shouldBe("a.href", "' http://??bar'");75 shouldBe("a.href", "'foo:??bar'"); 76 76 77 77 // IE8 keeps the protocol if it is 'c:'. -
trunk/LayoutTests/fast/dom/HTMLAnchorElement/script-tests/set-href-attribute-protocol.js
r207162 r212470 64 64 a.href = "foo:??bar"; 65 65 a.protocol = "http"; 66 shouldBe("a.href", "'http: //??bar'");66 shouldBe("a.href", "'http:??bar'"); 67 67 68 68 // IE8 keeps the protocol if it is 'c:'. -
trunk/LayoutTests/imported/w3c/ChangeLog
r212449 r212470 1 2017-02-16 Alex Christensen <achristensen@webkit.org> 2 3 Special URLs without a host are invalid 4 https://bugs.webkit.org/show_bug.cgi?id=168461 5 6 Reviewed by Tim Horton. 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-16 Joseph Pecoraro <pecoraro@apple.com> 2 13 -
trunk/LayoutTests/imported/w3c/web-platform-tests/url/a-element-expected.txt
r212279 r212470 395 395 PASS Parsing: <file:#frag> against <about:blank> 396 396 PASS Parsing: <http://[1:0::]> against <http://example.net/> 397 FAIL Parsing: <http://?> against <about:blank> assert_unreached: Expected URL to fail parsing Reached unreachable code 398 FAIL Parsing: <http://#> against <about:blank> assert_unreached: Expected URL to fail parsing Reached unreachable code 397 PASS Parsing: <http://?> against <about:blank> 398 PASS Parsing: <http://#> against <about:blank> 399 399 PASS Parsing: <sc://ñ> against <about:blank> 400 400 PASS Parsing: <sc://ñ?x> against <about:blank> -
trunk/LayoutTests/imported/w3c/web-platform-tests/url/a-element-xhtml-expected.txt
r212279 r212470 395 395 PASS Parsing: <file:#frag> against <about:blank> 396 396 PASS Parsing: <http://[1:0::]> against <http://example.net/> 397 FAIL Parsing: <http://?> against <about:blank> assert_unreached: Expected URL to fail parsing Reached unreachable code 398 FAIL Parsing: <http://#> against <about:blank> assert_unreached: Expected URL to fail parsing Reached unreachable code 397 PASS Parsing: <http://?> against <about:blank> 398 PASS Parsing: <http://#> against <about:blank> 399 399 PASS Parsing: <sc://ñ> against <about:blank> 400 400 PASS Parsing: <sc://ñ?x> against <about:blank> -
trunk/LayoutTests/imported/w3c/web-platform-tests/url/url-constructor-expected.txt
r212279 r212470 403 403 PASS Parsing: <file:#frag> against <about:blank> 404 404 PASS Parsing: <http://[1:0::]> against <http://example.net/> 405 FAIL Parsing: <http://?> against <about:blank> assert_throws: function "function () { 406 bURL(expected.input, expected.base) 407 }" did not throw 408 FAIL Parsing: <http://#> against <about:blank> assert_throws: function "function () { 409 bURL(expected.input, expected.base) 410 }" did not throw 405 PASS Parsing: <http://?> against <about:blank> 406 PASS Parsing: <http://#> against <about:blank> 411 407 PASS Parsing: <sc://ñ> against <about:blank> 412 408 PASS Parsing: <sc://ñ?x> against <about:blank> -
trunk/Source/WebCore/ChangeLog
r212468 r212470 1 2017-02-16 Alex Christensen <achristensen@webkit.org> 2 3 Special URLs without a host are invalid 4 https://bugs.webkit.org/show_bug.cgi?id=168461 5 6 Reviewed by Tim Horton. 7 8 http://? should be invalid. This matches Chrome and the spec and the intent of my implementation 9 of URLParser which already fails with urls like http:// and this was just an oversight. 10 Covered by newly passing web platform tests. Updated API tests. 11 12 * platform/URLParser.cpp: 13 (WebCore::URLParser::parse): 14 1 15 2017-02-16 Zalan Bujtas <zalan@apple.com> 2 16 -
trunk/Source/WebCore/platform/URLParser.cpp
r212279 r212470 1450 1450 auto iterator = CodePointIterator<CharacterType>(authorityOrHostBegin, c); 1451 1451 if (iterator.atEnd()) { 1452 if (m_urlIsSpecial) 1453 return failure(); 1452 1454 m_url.m_userEnd = currentPosition(c); 1453 1455 m_url.m_passwordEnd = m_url.m_userEnd; -
trunk/Tools/ChangeLog
r212466 r212470 1 2017-02-16 Alex Christensen <achristensen@webkit.org> 2 3 Special URLs without a host are invalid 4 https://bugs.webkit.org/show_bug.cgi?id=168461 5 6 Reviewed by Tim Horton. 7 8 * TestWebKitAPI/Tests/WebCore/URLParser.cpp: 9 (TestWebKitAPI::TEST_F): 10 1 11 2017-02-10 Filip Pizlo <fpizlo@apple.com> 2 12 -
trunk/Tools/TestWebKitAPI/Tests/WebCore/URLParser.cpp
r212279 r212470 920 920 {"http", "", "", "", 0, "/", "", "", "http://:/"}); 921 921 checkURLDifferences("http:##foo", 922 {" http", "", "", "", 0, "", "", "#foo", "http://##foo"},922 {"", "", "", "", 0, "", "", "", "http:##foo"}, 923 923 {"http", "", "", "", 0, "/", "", "#foo", "http:/##foo"}); 924 924 checkURLDifferences("http:??bar", 925 {" http", "", "", "", 0, "", "?bar", "", "http://??bar"},925 {"", "", "", "", 0, "", "", "", "http:??bar"}, 926 926 {"http", "", "", "", 0, "/", "?bar", "", "http:/??bar"}); 927 checkURL("asdf:##foo", {"asdf", "", "", "", 0, "", "", "#foo", "asdf:##foo"}); 928 checkURL("asdf:??bar", {"asdf", "", "", "", 0, "", "?bar", "", "asdf:??bar"}); 927 929 checkRelativeURLDifferences("//C|/foo/bar", "file:///tmp/mock/path", 928 930 {"file", "", "", "", 0, "/C:/foo/bar", "", "", "file:///C:/foo/bar"},
Note: See TracChangeset
for help on using the changeset viewer.