Closed Bug 1998723 Opened 1 year ago Closed 1 year ago

[wpt-sync] Sync PR 55911 - [Connection-Allowlist] Match simple patterns rather than origins.

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox147 fixed)

RESOLVED FIXED
147 Branch
Tracking Status
firefox147 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Mike West <mkwst@chromium.org> wrote:

[Connection-Allowlist] Match simple patterns rather than origins.

This CL shifts the ductwork between //content and //services/network
to pass allowlist patterns as strings that are converted into
SimpleUrlPatternMatcher objects when injected into a given network
context for enforcement via NetworkContext::RevokeNetworkForNonces.
This allows us to support substantially more robust matching syntax, and
gets fairly close to the breadth of what URL Pattern promises.

In the future, we'll have to consider the fact that this implementation
via SimpleUrlPatternMatcher does not support regex. That might be a
problem as we move past the prototype phase, but it might also be a
reasonable tradeoff to make (and one in-line with shared dictionaries
and service worker routing). A question for later...

Bug: 447954811
Change-Id: Ibcc076ffb4c50a8d9b3c1a11fa08374abe83e844
Reviewed-on: https://chromium-review.googlesource.com/7122019
WPT-Export-Revision: 249a8c179ce1694c302bcd4f3d31f6964461a879

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 2 tests and 12 subtests

Status Summary

Firefox

OK : 2
PASS: 7
FAIL: 17

Chrome

OK : 2
PASS: 7
FAIL: 17

Safari

OK : 2
PASS: 7
FAIL: 17

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 147 Branch
You need to log in before you can comment on or make changes to this bug.