Closed Bug 1637701 Opened 4 years ago Closed 4 years ago

[wpt-sync] Sync PR 23572 - URL: forbid <, >, and ^ in hosts

Categories

(Core :: DOM: Networking, task, P4)

task

Tracking

()

RESOLVED FIXED
mozilla78
Tracking Status
firefox78 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Attachments

(1 file)

Sync web-platform-tests PR 23572 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/23572
Details from upstream follow.

Rimas Misevičius <rmisev3@gmail.com> wrote:

URL: forbid <, >, and ^ in hosts

See https://github.com/whatwg/url/pull/459 for context.

Component: web-platform-tests → DOM: Networking
Product: Testing → Core
Attached file Notable wpt changes
# CI Results Ran 12 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI Total 78 tests ## Status Summary ### Firefox OK : 7 PASS: 2053[GitHub] 2085[Gecko-windows10-64-debug, Gecko-windows10-64-opt, Gecko-windows10-64-qr-debug, Gecko-windows10-64-qr-opt, Gecko-windows7-32-debug, Gecko-windows7-32-opt] 2088[Gecko-android-em-7.0-x86_64-debug-geckoview, Gecko-android-em-7.0-x86_64-opt-geckoview, Gecko-linux1804-64-debug, Gecko-linux1804-64-opt, Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt] FAIL: 834[Gecko-android-em-7.0-x86_64-debug-geckoview, Gecko-android-em-7.0-x86_64-opt-geckoview, Gecko-linux1804-64-debug, Gecko-linux1804-64-opt, Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt] 837[Gecko-windows10-64-debug, Gecko-windows10-64-opt, Gecko-windows10-64-qr-debug, Gecko-windows10-64-qr-opt, Gecko-windows7-32-debug, Gecko-windows7-32-opt] 873[GitHub] ### Chrome OK : 7 PASS: 2165 FAIL: 761 ### Safari OK : 7 PASS: 2462 FAIL: 464 ## Links [Gecko CI (Treeherder)](https://treeherder.mozilla.org/#/jobs?repo=try&revision=07185614b025bfb272c8386ad78a21b58dc0b2d3) [GitHub PR Head](https://wpt.fyi/results/?sha=d78d8498ee5da2d6afee42f83bf57fd453831e85&label=pr_head) [GitHub PR Base](https://wpt.fyi/results/?sha=d78d8498ee5da2d6afee42f83bf57fd453831e85&label=pr_base) ## Details ### Firefox-only Failures /url/a-element.html Parsing: <a: foo.com> against <http://example.org/foo/bar>: FAIL Parsing: <#> against <test:test?test>: FAIL Parsing: <http://foo:-80/> against <about:blank>: FAIL Parsing: <http://f:fifty-two/c> against <http://example.org/foo/bar>: FAIL Parsing: <file://test> against <file:///tmp/mock/path>: FAIL Parsing: <gopher:example.com/> against <http://example.org/foo/bar>: FAIL Parsing: <http://f:999999/c> against <http://example.org/foo/bar>: FAIL Parsing: <foo:/bar.com/> against <http://example.org/foo/bar>: FAIL Parsing: <madeupscheme:/example.com/> against <about:blank>: FAIL Parsing: <http://user@/www.example.com> against <about:blank>: FAIL Parsing: <ftps:/example.com/> against <about:blank>: FAIL Parsing: <#x> against <mailto:x@x.com>: FAIL Parsing: <file://example:test/> against <about:blank>: FAIL Parsing: <http://f:18446744073709551697/c> against <http://example.org/>: FAIL Parsing: <file://[example]/> against <about:blank>: FAIL Parsing: <#x> against <about:blank>: FAIL Parsing: <data:/example.com/> against <about:blank>: FAIL Parsing: <ftps:example.com/> against <http://example.org/foo/bar>: FAIL Parsing: <gopher:example.com/> against <about:blank>: FAIL Parsing: <#i> against <sc:/pa/pa>: FAIL Parsing: <ftps:/example.com/> against <http://example.org/foo/bar>: FAIL Parsing: <javascript:example.com/> against <about:blank>: FAIL Parsing: <wow:%1G> against <about:blank>: FAIL Parsing: <non-spec:/test?a#bc> against <about:blank>: FAIL Parsing: <file://%C2%AD/p> against <about:blank>: FAIL Parsing: <javascript:/example.com/> against <about:blank>: FAIL Parsing: <i> against <sc:/pa/pa>: FAIL Parsing: <test-a-colon-slash.html> against <a:/>: FAIL Parsing: <mailto:example.com/> against <http://example.org/foo/bar>: FAIL Parsing: <blob:d3958f5c-0777-0845-9dcf-2cb28783acaf> against <about:blank>: FAIL Parsing: <#> against <test:test>: FAIL Parsing: <file:..> against <http://www.example.com/test>: FAIL Parsing: <https://0x100000000/test> against <about:blank>: FAIL Parsing: <data:example.com/> against <http://example.org/foo/bar>: FAIL Parsing: <madeupscheme:example.com/> against <about:blank>: FAIL Parsing: <madeupscheme:/example.com/> against <http://example.org/foo/bar>: FAIL Parsing: <https://0x.0x.0> against <about:blank>: FAIL Parsing: <http://www.@pple.com> against <about:blank>: FAIL Parsing: <\\server\file> against <file:///tmp/mock/path>: FAIL Parsing: <//server/file> against <file:///tmp/mock/path>: FAIL Parsing: <#i> against <sc:sd/sd>: FAIL Parsing: <urn:ietf:rfc:2648> against <about:blank>: FAIL Parsing: <#i> against <sc:sd>: FAIL Parsing: <gopher:/example.com/> against <about:blank>: FAIL Parsing: <mailto:/example.com/> against <about:blank>: FAIL Parsing: <http://f:b/c> against <http://example.org/foo/bar>: FAIL Parsing: <http://f:340282366920938463463374607431768211537/c> against <http://example.org/>: FAIL Parsing: <mailto:example.com/> against <about:blank>: FAIL Parsing: </\server/file> against <file:///tmp/mock/path>: FAIL Parsing: <https://256.0.0.1/test> against <about:blank>: FAIL Parsing: <javascript:/example.com/> against <http://example.org/foo/bar>: FAIL Parsing: <data:/example.com/> against <http://example.org/foo/bar>: FAIL Parsing: <tel:1234567890> against <http://example.org/foo/bar>: FAIL Parsing: <blob:https://example.com:443/> against <about:blank>: FAIL Parsing: <foo:/> against <http://example.org/foo/bar>: FAIL Parsing: <ftps:example.com/> against <about:blank>: FAIL Parsing: <http://user:pass@/> against <about:blank>: FAIL Parsing: <mailto:/example.com/> against <http://example.org/foo/bar>: FAIL Parsing: <../i> against <sc:/pa/pa>: FAIL Parsing: <c:/foo> against <http://example.org/foo/bar>: FAIL Parsing: <javascript:example.com/> against <http://example.org/foo/bar>: FAIL Parsing: <file://a­b/p> against <about:blank>: FAIL Parsing: <data:example.com/> against <about:blank>: FAIL Parsing: <a1234567890-+.:foo/bar> against <http://example.com/dir/file>: FAIL Parsing: <madeupscheme:example.com/> against <http://example.org/foo/bar>: FAIL Parsing: <http::@c:29> against <http://example.org/foo/bar>: FAIL Parsing: <data:text/html,test#test> against <http://example.org/foo/bar>: FAIL Parsing: <sc::a@example.net> against <about:blank>: FAIL Parsing: <http://example.com/foo/%2e> against <about:blank>: FAIL Parsing: <sc:\../> against <about:blank>: FAIL Parsing: <tag:joe@example.org,2001:foo/bar> against <about:blank>: FAIL Parsing: <http://a:b@/www.example.com> against <about:blank>: FAIL Parsing: <http://[www.google.com]/> against <about:blank>: FAIL Parsing: </i> against <sc:/pa/pa>: FAIL Parsing: <file://a%C2%ADb/p> against <about:blank>: FAIL Parsing: <?i> against <sc:/pa/pa>: FAIL Parsing: <http://f:4294967377/c> against <http://example.org/>: FAIL Parsing: <gopher:/example.com/> against <http://example.org/foo/bar>: FAIL Parsing: <wow:%NBD> against <about:blank>: FAIL Parsing: <C> against <file://host/dir/file>: FAIL Parsing: <http::b@www.example.com> against <about:blank>: FAIL Parsing: <http://foo.com:b@d/> against <http://example.org/foo/bar>: FAIL Parsing: <test-a-colon-slash-b.html> against <a:/b>: FAIL /url/a-element-origin-xhtml.xhtml Parsing origin: <https://0x.0x.0> against <about:blank>: FAIL Parsing origin: <http::b@www.example.com> against <about:blank>: FAIL /url/url-constructor.html Parsing: <file://example%/> against <about:blank>: FAIL Parsing: <file://test> against <file:///tmp/mock/path>: FAIL Parsing: <file://example:test/> against <about:blank>: FAIL Parsing: <file://[example]/> against <about:blank>: FAIL Parsing: <file://­/p> against <about:blank>: FAIL Parsing: <file://%C2%AD/p> against <about:blank>: FAIL Parsing: <file:..> against <http://www.example.com/test>: FAIL Parsing: <https://0x100000000/test> against <about:blank>: FAIL Parsing: <https://0x.0x.0> against <about:blank>: FAIL Parsing: <http://www.@pple.com> against <about:blank>: FAIL Parsing: <http://256.256.256.256> against <http://other.com/>: FAIL Parsing: <\\server\file> against <file:///tmp/mock/path>: FAIL Parsing: <//server/file> against <file:///tmp/mock/path>: FAIL Parsing: </\server/file> against <file:///tmp/mock/path>: FAIL Parsing: <http://%ef%b7%90zyx.com> against <http://other.com/>: FAIL Parsing: <https://256.0.0.1/test> against <about:blank>: FAIL Parsing: <http://10000000000> against <http://other.com/>: FAIL Parsing: <https://%EF%BF%BD> against <about:blank>: FAIL Parsing: <http://4294967296> against <http://other.com/>: FAIL Parsing: <http://192.168.0.257> against <http://other.com/>: FAIL Parsing: <https://> against <about:blank>: FAIL Parsing: <file://a­b/p> against <about:blank>: FAIL Parsing: <http://0xffffffff1> against <http://other.com/>: FAIL Parsing: <http::@c:29> against <http://example.org/foo/bar>: FAIL Parsing: <http://example.com/foo/%2e> against <about:blank>: FAIL Parsing: <file://a%C2%ADb/p> against <about:blank>: FAIL Parsing: <C> against <file://host/dir/file>: FAIL Parsing: <http://zyx.com> against <http://other.com/>: FAIL Parsing: <http::b@www.example.com> against <about:blank>: FAIL Parsing: <http://foo.com:b@d/> against <http://example.org/foo/bar>: FAIL /url/url-origin.html Origin parsing: <http::b@www.example.com> against <about:blank>: FAIL Origin parsing: <https://0x.0x.0> against <about:blank>: FAIL /url/a-element-origin.html Parsing origin: <https://0x.0x.0> against <about:blank>: FAIL Parsing origin: <http::b@www.example.com> against <about:blank>: FAIL /url/failure.html XHR: https://%EF%BF%BD should throw: FAIL sendBeacon(): https://%EF%BF%BD should throw: FAIL URL's constructor's base argument: file://%C2%AD/p should throw: FAIL XHR: file://[example]/ should throw: FAIL window.open(): file://­/p should throw: FAIL URL's constructor's base argument: file://example%/ should throw: FAIL XHR: https://256.0.0.1/test should throw: FAIL XHR: file://%C2%AD/p should throw: FAIL XHR: file://example%/ should throw: FAIL URL's constructor's base argument: file://example:test/ should throw: FAIL window.open(): https://0x100000000/test should throw: FAIL sendBeacon(): https://0x100000000/test should throw: FAIL window.open(): https:// should throw: FAIL XHR: ftp://example.com%A0/ should throw: FAIL XHR: file://­/p should throw: FAIL XHR: file://example:test/ should throw: FAIL XHR: https://0x100000000/test should throw: FAIL URL's constructor's base argument: https:// should throw: FAIL XHR: https:// should throw: FAIL window.open(): https://256.0.0.1/test should throw: FAIL sendBeacon(): https://256.0.0.1/test should throw: FAIL sendBeacon(): https:// should throw: FAIL URL's constructor's base argument: https://0x100000000/test should throw: FAIL URL's constructor's base argument: file://[example]/ should throw: FAIL URL's constructor's base argument: https://%EF%BF%BD should throw: FAIL XHR: https://example.com%A0/ should throw: FAIL URL's constructor's base argument: file://­/p should throw: FAIL window.open(): https://%EF%BF%BD should throw: FAIL window.open(): file://[example]/ should throw: FAIL window.open(): file://example:test/ should throw: FAIL URL's constructor's base argument: https://256.0.0.1/test should throw: FAIL window.open(): file://%C2%AD/p should throw: FAIL window.open(): file://example%/ should throw: FAIL XHR: ftp://example.com%80/ should throw: FAIL XHR: https://example.com%80/ should throw: FAIL /url/a-element-xhtml.xhtml Parsing: <a: foo.com> against <http://example.org/foo/bar>: FAIL Parsing: <#> against <test:test?test>: FAIL Parsing: <http://foo:-80/> against <about:blank>: FAIL Parsing: <http://f:fifty-two/c> against <http://example.org/foo/bar>: FAIL Parsing: <file://test> against <file:///tmp/mock/path>: FAIL Parsing: <gopher:example.com/> against <http://example.org/foo/bar>: FAIL Parsing: <http://f:999999/c> against <http://example.org/foo/bar>: FAIL Parsing: <foo:/bar.com/> against <http://example.org/foo/bar>: FAIL Parsing: <madeupscheme:/example.com/> against <about:blank>: FAIL Parsing: <http://user@/www.example.com> against <about:blank>: FAIL Parsing: <ftps:/example.com/> against <about:blank>: FAIL Parsing: <#x> against <mailto:x@x.com>: FAIL Parsing: <file://example:test/> against <about:blank>: FAIL Parsing: <http://f:18446744073709551697/c> against <http://example.org/>: FAIL Parsing: <file://[example]/> against <about:blank>: FAIL Parsing: <#x> against <about:blank>: FAIL Parsing: <data:/example.com/> against <about:blank>: FAIL Parsing: <ftps:example.com/> against <http://example.org/foo/bar>: FAIL Parsing: <gopher:example.com/> against <about:blank>: FAIL Parsing: <#i> against <sc:/pa/pa>: FAIL Parsing: <ftps:/example.com/> against <http://example.org/foo/bar>: FAIL Parsing: <javascript:example.com/> against <about:blank>: FAIL Parsing: <wow:%1G> against <about:blank>: FAIL Parsing: <non-spec:/test?a#bc> against <about:blank>: FAIL Parsing: <file://%C2%AD/p> against <about:blank>: FAIL Parsing: <javascript:/example.com/> against <about:blank>: FAIL Parsing: <i> against <sc:/pa/pa>: FAIL Parsing: <test-a-colon-slash.html> against <a:/>: FAIL Parsing: <mailto:example.com/> against <http://example.org/foo/bar>: FAIL Parsing: <blob:d3958f5c-0777-0845-9dcf-2cb28783acaf> against <about:blank>: FAIL Parsing: <#> against <test:test>: FAIL Parsing: <file:..> against <http://www.example.com/test>: FAIL Parsing: <https://0x100000000/test> against <about:blank>: FAIL Parsing: <data:example.com/> against <http://example.org/foo/bar>: FAIL Parsing: <madeupscheme:example.com/> against <about:blank>: FAIL Parsing: <madeupscheme:/example.com/> against <http://example.org/foo/bar>: FAIL Parsing: <https://0x.0x.0> against <about:blank>: FAIL Parsing: <http://www.@pple.com> against <about:blank>: FAIL Parsing: <\\server\file> against <file:///tmp/mock/path>: FAIL Parsing: <//server/file> against <file:///tmp/mock/path>: FAIL Parsing: <#i> against <sc:sd/sd>: FAIL Parsing: <urn:ietf:rfc:2648> against <about:blank>: FAIL Parsing: <#i> against <sc:sd>: FAIL Parsing: <gopher:/example.com/> against <about:blank>: FAIL Parsing: <mailto:/example.com/> against <about:blank>: FAIL Parsing: <http://f:b/c> against <http://example.org/foo/bar>: FAIL Parsing: <http://f:340282366920938463463374607431768211537/c> against <http://example.org/>: FAIL Parsing: <mailto:example.com/> against <about:blank>: FAIL Parsing: </\server/file> against <file:///tmp/mock/path>: FAIL Parsing: <https://256.0.0.1/test> against <about:blank>: FAIL Parsing: <javascript:/example.com/> against <http://example.org/foo/bar>: FAIL Parsing: <data:/example.com/> against <http://example.org/foo/bar>: FAIL Parsing: <tel:1234567890> against <http://example.org/foo/bar>: FAIL Parsing: <blob:https://example.com:443/> against <about:blank>: FAIL Parsing: <foo:/> against <http://example.org/foo/bar>: FAIL Parsing: <ftps:example.com/> against <about:blank>: FAIL Parsing: <http://user:pass@/> against <about:blank>: FAIL Parsing: <mailto:/example.com/> against <http://example.org/foo/bar>: FAIL Parsing: <../i> against <sc:/pa/pa>: FAIL Parsing: <c:/foo> against <http://example.org/foo/bar>: FAIL Parsing: <javascript:example.com/> against <http://example.org/foo/bar>: FAIL Parsing: <file://a­b/p> against <about:blank>: FAIL Parsing: <data:example.com/> against <about:blank>: FAIL Parsing: <a1234567890-+.:foo/bar> against <http://example.com/dir/file>: FAIL Parsing: <madeupscheme:example.com/> against <http://example.org/foo/bar>: FAIL Parsing: <http::@c:29> against <http://example.org/foo/bar>: FAIL Parsing: <data:text/html,test#test> against <http://example.org/foo/bar>: FAIL Parsing: <sc::a@example.net> against <about:blank>: FAIL Parsing: <http://example.com/foo/%2e> against <about:blank>: FAIL Parsing: <sc:\../> against <about:blank>: FAIL Parsing: <tag:joe@example.org,2001:foo/bar> against <about:blank>: FAIL Parsing: <http://a:b@/www.example.com> against <about:blank>: FAIL Parsing: <http://[www.google.com]/> against <about:blank>: FAIL Parsing: </i> against <sc:/pa/pa>: FAIL Parsing: <file://a%C2%ADb/p> against <about:blank>: FAIL Parsing: <?i> against <sc:/pa/pa>: FAIL Parsing: <http://f:4294967377/c> against <http://example.org/>: FAIL Parsing: <gopher:/example.com/> against <http://example.org/foo/bar>: FAIL Parsing: <wow:%NBD> against <about:blank>: FAIL Parsing: <C> against <file://host/dir/file>: FAIL Parsing: <http::b@www.example.com> against <about:blank>: FAIL Parsing: <http://foo.com:b@d/> against <http://example.org/foo/bar>: FAIL Parsing: <test-a-colon-slash-b.html> against <a:/b>: FAIL (See attachment for full changes)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d3d0c74f5d47 [wpt PR 23572] - URL: forbid <, >, and ^ in hosts, a=testonly https://hg.mozilla.org/integration/autoland/rev/5a23927e0347 [wpt PR 23572] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla78
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: