From 60d46daab127b57b7e151dc6b89fa88d0a3bea0b Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Sat, 30 Nov 2019 00:13:36 +0000 Subject: [PATCH] Bug 1596058 [wpt PR 20228] - [Trusted Types] Cover attribute node manipulation with Trusted Types checks., a=testonly Automatic update from web-platform-tests [Trusted Types] Cover attribute node manipulation with Trusted Types checks. Element::setAttribute will perform trusted types checks, which (currently) can be circumvented by obtaining the DOM's attribute node and setting the value directly. This fixes this bypass, by performing identical checks when the attribute node values are set, and/or the attribute node is attached to an element. Bug: 1008012 Bug: https://github.com/w3c/webappsec-trusted-types/issues/47 Change-Id: I1d8ead85b3fa11821c329e1f4af60c1e85ea8298 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1911215 Commit-Queue: Daniel Vogelheim Reviewed-by: Mike West Cr-Commit-Position: refs/heads/master{#716193} -- wpt-commits: 36362f1a77faf18831c8b596e7b5bee081629817 wpt-pr: 20228 UltraBlame original commit: 5765ef6d9f1a1d561d37a365cda5c2084245145f --- .../TrustedType-AttributeNodes.tentative.html | 93 +++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 testing/web-platform/tests/trusted-types/TrustedType-AttributeNodes.tentative.html diff --git a/testing/web-platform/tests/trusted-types/TrustedType-AttributeNodes.tentative.html b/testing/web-platform/tests/trusted-types/TrustedType-AttributeNodes.tentative.html new file mode 100644 index 0000000000000..77eef9cf39e42 --- /dev/null +++ b/testing/web-platform/tests/trusted-types/TrustedType-AttributeNodes.tentative.html @@ -0,0 +1,93 @@ + + + + + + + + +