[wpt-sync] Sync PR 55911 - [Connection-Allowlist] Match simple patterns rather than origins.
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox147 fixed)
| 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
SimpleUrlPatternMatcherobjects when injected into a given network
context for enforcement viaNetworkContext::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
viaSimpleUrlPatternMatcherdoes 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
| Assignee | ||
Comment 1•1 year ago
|
||
| Assignee | ||
Comment 2•1 year ago
|
||
| Assignee | ||
Comment 3•1 year ago
|
||
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
- /connection-allowlist/tentative/fetch-wildcard.sub.window.html [wpt.fyi]
- Fetch to http://www.web-platform.test:8000 fails.:
FAIL(Chrome:FAIL, Safari:FAIL) - Fetch to http://www1.web-platform.test:8000 fails.:
FAIL(Chrome:FAIL, Safari:FAIL) - Fetch to http://www2.web-platform.test:8000 fails.:
FAIL(Chrome:FAIL, Safari:FAIL) - Fetch to http://xn--n8j6ds53lwwkrqhv28a.web-platform.test:8000 fails.:
FAIL(Chrome:FAIL, Safari:FAIL) - Fetch to http://xn--lve-6lad.web-platform.test:8000 fails.:
FAIL(Chrome:FAIL, Safari:FAIL) - Fetch to http://not-web-platform.test:8000 fails.:
FAIL(Chrome:FAIL, Safari:FAIL)
- Fetch to http://www.web-platform.test:8000 fails.:
- /connection-allowlist/tentative/fetch.sub.window.html [wpt.fyi]
- Fetch to http://www.web-platform.test:8000 fails.:
FAIL(Chrome:FAIL, Safari:FAIL) - Fetch to http://www1.web-platform.test:8000 fails.:
FAIL(Chrome:FAIL, Safari:FAIL) - Fetch to http://www2.web-platform.test:8000 fails.:
FAIL(Chrome:FAIL, Safari:FAIL) - Fetch to http://xn--n8j6ds53lwwkrqhv28a.web-platform.test:8000 fails.:
FAIL(Chrome:FAIL, Safari:FAIL) - Fetch to http://xn--lve-6lad.web-platform.test:8000 fails.:
FAIL(Chrome:FAIL, Safari:FAIL) - Fetch to http://not-web-platform.test:8000 fails.:
FAIL(Chrome:FAIL, Safari:FAIL) - Fetch to http://www.not-web-platform.test:8000 fails.:
FAIL(Chrome:FAIL, Safari:FAIL) - Fetch to http://www1.not-web-platform.test:8000 fails.:
FAIL(Chrome:FAIL, Safari:FAIL) - Fetch to http://www2.not-web-platform.test:8000 fails.:
FAIL(Chrome:FAIL, Safari:FAIL) - Fetch to http://xn--n8j6ds53lwwkrqhv28a.not-web-platform.test:8000 fails.:
FAIL(Chrome:FAIL, Safari:FAIL) - Fetch to http://xn--lve-6lad.not-web-platform.test:8000 fails.:
FAIL(Chrome:FAIL, Safari:FAIL)
- Fetch to http://www.web-platform.test:8000 fails.:
Comment 5•1 year ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/4a1982c9796e
https://hg.mozilla.org/mozilla-central/rev/506688eea51e
Description
•