From df75faff495652d1a2d71510519bf308347dcead Mon Sep 17 00:00:00 2001 From: Noam Rosenthal Date: Thu, 16 Jul 2026 03:55:54 -0700 Subject: [PATCH] TrustedParserOptions: return a new sanitizer in each call This is instead of retaining a frozen copy. See https://github.com/w3c/trusted-types/pull/606 Bug: 491743369 Change-Id: Ida4d1a661edb8475cbc4a1b2ce0d0e3d38913024 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8097523 Reviewed-by: Daniel Vogelheim Commit-Queue: Noam Rosenthal Cr-Commit-Position: refs/heads/main@{#1663095} --- ...am-html-with-trusted-types-pass-trusted.html | 17 ++++------------- ...l-with-trustedtypes-immutable.tentative.html | 17 +++++++++-------- 2 files changed, 13 insertions(+), 21 deletions(-) diff --git a/domparsing/tentative/stream-html-with-trusted-types-pass-trusted.html b/domparsing/tentative/stream-html-with-trusted-types-pass-trusted.html index 2f5cbe7bc7b5a2..dda5b1dfbd7744 100644 --- a/domparsing/tentative/stream-html-with-trusted-types-pass-trusted.html +++ b/domparsing/tentative/stream-html-with-trusted-types-pass-trusted.html @@ -33,20 +33,14 @@ } const methods = [ - "streamHTML", "streamHTMLUnsafe", - "streamAppendHTML", "streamAppendHTMLUnsafe", - "streamPrependHTML", "streamPrependHTMLUnsafe", - "streamBeforeHTML", "streamBeforeHTMLUnsafe", - "streamAfterHTML", "streamAfterHTMLUnsafe", ]; for (const method of methods) { - const safe = !method.endsWith("Unsafe"); promise_test( async (t) => { t.add_cleanup(cleanup); @@ -67,13 +61,10 @@ window.did_run = false; await writer.write("