From 4ed2f165178fe4894b97c064e831332f15d45324 Mon Sep 17 00:00:00 2001 From: Mirko Brodesser Date: Wed, 30 Oct 2024 14:59:01 +0000 Subject: [PATCH] transform WPT 's async sub-tests to promise-tests and remove checking the securitypolicyevent's target element. Gecko doesn't set the securitypolicyevent violation's target element, which prevented the async tests from passing with Gecko. Setting the violation's target element isn't specified ( https://github.com/w3c/webappsec-csp/issues/687). Promise-based tests allow removing checking the target element, because the tests are run in sequence (https://web-platform-tests.org/writing-tests/testharness-api.html#promise-tests). Differential Revision: https://phabricator.services.mozilla.com/D227160 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1919248 gecko-commit: b941985be92395c909b233ecfbba356f6d0db149 gecko-reviewers: smaug --- .../to-javascript-url-script-src.html | 60 ++++++++++--------- 1 file changed, 33 insertions(+), 27 deletions(-) diff --git a/content-security-policy/navigation/to-javascript-url-script-src.html b/content-security-policy/navigation/to-javascript-url-script-src.html index 70dea1f985e6b7..e0b6d992e963fa 100644 --- a/content-security-policy/navigation/to-javascript-url-script-src.html +++ b/content-security-policy/navigation/to-javascript-url-script-src.html @@ -7,17 +7,15 @@