tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 92caa21f458c4b6280ec2ae3b60344c700834d10
parent aaa81d0e82871c2302682b5f1cea93145cfcb87e
Author: Mike West <mkwst@chromium.org>
Date:   Wed, 26 Nov 2025 08:53:59 +0000

Bug 1998723 [wpt PR 55911] - [Connection-Allowlist] Match simple patterns rather than origins., a=testonly

Automatic update from web-platform-tests
[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/c/chromium/src/+/7122019
Reviewed-by: Kenichi Ishibashi <bashi@chromium.org>
Reviewed-by: Shivani Sharma <shivanisha@chromium.org>
Commit-Queue: Mike West <mkwst@chromium.org>
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1549058}

--

wpt-commits: 42d7f12b54b4652b87caf6575d2c6d57158e5140
wpt-pr: 55911