[wpt-sync] Sync PR 29202 - URLPattern: Support optional protocol ':', search '?', and hash '#'.
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox91 fixed)
| Tracking | Status | |
|---|---|---|
| firefox91 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Attachments
(1 file)
|
97.35 KB,
text/plain
|
Details |
Sync web-platform-tests PR 29202 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/29202
Details from upstream follow.
b'Ben Kelly <wanderview@chromium.org>' wrote:
URLPattern: Support optional protocol ':', search '?', and hash '#'.
This allows us to support passing a URL object directly to
test()or
exec(). For example:let p = new URLPattern({ pathname: '/foo' });
let u = new URL('https://example.com/foo');
p.test(u); // trueThis would previously always return false because the
URL.protocol
getter returnshttps:and URLPattern was expectinghttps.Bug: 1141510
Change-Id: I26c27633a9201e604a895df44c215f7d0a8ef753
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2919344
Reviewed-by: Jeremy Roman \<jbroman@chromium.org>
Commit-Queue: Ben Kelly \<wanderview@chromium.org>
Cr-Commit-Position: refs/heads/master@{#890549}
| Assignee | ||
Comment 1•4 years ago
|
||
| Assignee | ||
Comment 2•4 years ago
|
||
Comment 4•4 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/e5d9ea778fbc
https://hg.mozilla.org/mozilla-central/rev/c3a7581aca99
Description
•