From db203bc37757fde6b1f196354808912901669ffe Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Wed, 1 Jan 2025 01:53:27 +0000 Subject: [PATCH] Bug 1907849: part 9) Extend WPT to check sink value of "Document parseHTMLUnsafe". r=smaug One step towards fixing https://github.com/w3c/trusted-types/issues/494. Differential Revision: https://phabricator.services.mozilla.com/D232363 UltraBlame original commit: c006cb26e155686ac4c27d2a0797ff2ce03e39a8 --- ...ssignment-to-Document-parseHTMLUnsafe.html | 52 ++++++++++++++++++- 1 file changed, 51 insertions(+), 1 deletion(-) diff --git a/testing/web-platform/tests/trusted-types/block-string-assignment-to-Document-parseHTMLUnsafe.html b/testing/web-platform/tests/trusted-types/block-string-assignment-to-Document-parseHTMLUnsafe.html index 490b89895fa18..cd0a19348ea52 100644 --- a/testing/web-platform/tests/trusted-types/block-string-assignment-to-Document-parseHTMLUnsafe.html +++ b/testing/web-platform/tests/trusted-types/block-string-assignment-to-Document-parseHTMLUnsafe.html @@ -115,6 +115,34 @@ " > < +link +rel += +" +help +" +href += +" +https +: +/ +/ +html +. +spec +. +whatwg +. +org +/ +# +dom +- +parsehtmlunsafe +" +> +< / head > @@ -316,9 +344,31 @@ { createHTML : +( +value +_ +sink +) += +> +{ +assert_equals +( +sink +" +Document +parseHTMLUnsafe +" +) +; +return createHTMLJS +( +value +) +; +} } -true ) ; let