Closed Bug 1845951 Opened 1 year ago Closed 1 year ago

[wpt-sync] Sync PR 41226 - Allow urlPattern field to take URLPatternInit.

Categories

(Core :: DOM: Service Workers, task, P4)

task

Tracking

()

RESOLVED FIXED
118 Branch
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.md

To 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

PR 41226 applied with additional changes from upstream: 13ef5f85943fcbd846a536b509cd29b3d113d90a
Component: web-platform-tests → DOM: Service Workers
Product: Testing → Core

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

Pushed by ctuns@mozilla.com: https://hg.mozilla.org/mozilla-central/rev/571376a78dc0 [wpt PR 41226] - Allow urlPattern field to take URLPatternInit., a=testonly
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 118 Branch
You need to log in before you can comment on or make changes to this bug.