From 41da3ae75b7f0c61c9d4ae86955520c5c159066e Mon Sep 17 00:00:00 2001 From: Mirko Brodesser <129945747+mbrodesser-Igalia@users.noreply.github.com> Date: Fri, 19 Apr 2024 16:06:05 +0000 Subject: [PATCH] Bug 1877743 [wpt PR 44323] - Add test for importing a `srcdoc` attribute node from a non-TT realm to a TT iframe element throws, a=testonly Automatic update from web-platform-tests Trusted Types: check that the policy is obtained from the correct global Helps with https://github.com/w3c/trusted-types/issues/425. -- wpt-commits: 560c8d6dc55b08d13ba88f48bd51828bfbce8abd wpt-pr: 44323 --- ...s-Elements-node-documents-globals-CSP.html | 125 ++++++++++++++++++ 1 file changed, 125 insertions(+) create mode 100644 testing/web-platform/tests/trusted-types/Element-setAttribute-respects-Elements-node-documents-globals-CSP.html diff --git a/testing/web-platform/tests/trusted-types/Element-setAttribute-respects-Elements-node-documents-globals-CSP.html b/testing/web-platform/tests/trusted-types/Element-setAttribute-respects-Elements-node-documents-globals-CSP.html new file mode 100644 index 000000000000..c0f72bb36ac0 --- /dev/null +++ b/testing/web-platform/tests/trusted-types/Element-setAttribute-respects-Elements-node-documents-globals-CSP.html @@ -0,0 +1,125 @@ + + + + + + + trusted-types (TT): `setAttribute`/`setAttributeNode` for an element + adopted from a non-TT realm respects TT's Content-Security-Policy (CSP) + + + + + +
+ + + + + +
+ + + + + + +