[wpt-sync] Sync PR 41226 - Allow urlPattern field to take URLPatternInit.
Categories
(Core :: DOM: Service Workers, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox118 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 41226 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/41226
Details from upstream follow.
Yoshisato Yanagisawa <yyanagisawa@chromium.org> wrote:
Allow urlPattern field to take URLPatternInit.
This is something told in:
https://github.com/yoshisatoyanagisawa/service-worker-static-routing-api/blob/main/final-form.mdTo allow people to write a complex pattern and make URLPattern
understand it, let me make URLPatternInit also supported.
With this way, people can write like:condition: { urlPattern: new URLPattern("://example.com/*.ico"); }
Hostname and pathname are supported in this CL, and other fields
support will be implemented in the coming CLs.Bug: 1371756
Change-Id: I1f94e27f0dd76bbeb372878f3a9692fa094da8c0
Reviewed-on: https://chromium-review.googlesource.com/4685593
WPT-Export-Revision: 0a9bc41eb63145e50f002e491d37367b080bc85c
Assignee | ||
Comment 1•2 years ago
|
||
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 2•2 years ago
|
||
Assignee | ||
Comment 3•2 years ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 2 tests and 2 subtests
Status Summary
Firefox
OK
: 2
PASS
: 2
FAIL
: 2
Chrome
OK
: 2
PASS
: 2
FAIL
: 2
Safari
OK
: 2
PASS
: 2
FAIL
: 2
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /service-workers/service-worker/tentative/static-router/static-router-main-resource.https.html [wpt.fyi]
- Main resource load matched with the condition:
FAIL
(Chrome:FAIL
, Safari:FAIL
)
- Main resource load matched with the condition:
- /service-workers/service-worker/tentative/static-router/static-router-subresource.https.html [wpt.fyi]
- Subresource load matched with the condition:
FAIL
(Chrome:FAIL
, Safari:FAIL
)
- Subresource load matched with the condition:
Comment 5•2 years ago
|
||
bugherder |
Description
•