From 98399093a8c583fe63f72c07c9fed0220dc254fb Mon Sep 17 00:00:00 2001 From: Mirko Brodesser Date: Thu, 28 Mar 2024 10:12:33 +0100 Subject: [PATCH] Change test to check `setAttributeNode` and `setAttribute` respect the element's node document's global's CSP Requires https://github.com/web-platform-tests/wpt/issues/45405 to be fixed. --- ...s-Elements-node-documents-globals-CSP.html | 125 ++++++++++++++++++ ...ssignment-to-Element-setAttributeNode.html | 79 ----------- 2 files changed, 125 insertions(+), 79 deletions(-) create mode 100644 trusted-types/Element-setAttribute-respects-Elements-node-documents-globals-CSP.html delete mode 100644 trusted-types/block-string-assignment-to-Element-setAttributeNode.html diff --git a/trusted-types/Element-setAttribute-respects-Elements-node-documents-globals-CSP.html b/trusted-types/Element-setAttribute-respects-Elements-node-documents-globals-CSP.html new file mode 100644 index 000000000000000..a617865bfdc981f --- /dev/null +++ b/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) + + + + + +
+ + + + + +
+ + + + + + + diff --git a/trusted-types/block-string-assignment-to-Element-setAttributeNode.html b/trusted-types/block-string-assignment-to-Element-setAttributeNode.html deleted file mode 100644 index 00bd68985768bf1..000000000000000 --- a/trusted-types/block-string-assignment-to-Element-setAttributeNode.html +++ /dev/null @@ -1,79 +0,0 @@ - - - - - -trusted-types (TT): setAttributeNode with node from non-TT realm - - - - -
- - - - - -
- - - - - - -