tor-browser

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

commit 3a6c918558a5a91abd386e03448122531b5e5829
parent 725e6229c6e68df381fbe654049f609b9b280b58
Author: Daniel Vogelheim <vogelheim@chromium.org>
Date:   Wed, 26 Nov 2025 09:00:58 +0000

Bug 2002205 [wpt PR 56253] - [Sanitizer] Update the built-in to handle per-element attributes., a=testonly

Automatic update from web-platform-tests
[Sanitizer] Update the built-in to handle per-element attributes.

This adds support for per-element allow/remove attribute to the generated builtins. Previously, we'd just copy the per-element
allow-list to the global allow-list. We now extend the generator
script to faithfully generate the builtins.

Also add a WPT test that specifically tests for defaults with
per-element attributes.

This is CL 4/7, which together implement the Sanitizer API:

1: crrev.com/c/7096258 - Update the built-in baseline.
2: crrev.com/c/7100560 - Update the built-in default.
3: crrev.com/c/7105682 - Update the configuration's data model.
4: crrev.com/c/7132699 - Update the built-in to handle per-element attributes.
5: crrev.com/c/7106779 - Update the core sanitization algorithm.
6: crrev.com/c/7105823 - Update the configuration modifier methods.
7: crrev.com/c/7106101 - Update flag status and remove virtual test suite.

Bug: 40138584
Change-Id: I5d4ec4e156c6df899fabf540fd5b276477fbe858
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7132699
Reviewed-by: Yifan Luo <lyf@chromium.org>
Commit-Queue: Daniel Vogelheim <vogelheim@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1549708}

--

wpt-commits: 2e800b1a4caf63b0d1948ca1296905be57042cd8
wpt-pr: 56253

Diffstat:
Mtesting/web-platform/tests/sanitizer-api/sanitizer-basic-filtering.tentative.html | 17+++++++++++++++++
1 file changed, 17 insertions(+), 0 deletions(-)

diff --git a/testing/web-platform/tests/sanitizer-api/sanitizer-basic-filtering.tentative.html b/testing/web-platform/tests/sanitizer-api/sanitizer-basic-filtering.tentative.html @@ -259,6 +259,23 @@ a <!-- comment --> b | xlink href="about:blank" </script> +<script id="defaults-with-attributes-per-element" type="html5lib-testcases"> +#data +<div start=1 value=5 lang=en><ol start=1 value=5 lang=en><li start=1 value=5 lang=en>xx +#config +"default" +#document +| <div> +| lang="en" +| <ol> +| lang="en" +| start="1" +| <li> +| lang="en" +| value="5" +| "xx" + +</script> <script> for(const group of document.querySelectorAll("script[type='html5lib-testcases']")) {