summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/content-security-policy/script-src/script-src-strict_dynamic_worker.https.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/content-security-policy/script-src/script-src-strict_dynamic_worker.https.html')
-rw-r--r--testing/web-platform/tests/content-security-policy/script-src/script-src-strict_dynamic_worker.https.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/web-platform/tests/content-security-policy/script-src/script-src-strict_dynamic_worker.https.html b/testing/web-platform/tests/content-security-policy/script-src/script-src-strict_dynamic_worker.https.html
new file mode 100644
index 0000000000..213eb6276d
--- /dev/null
+++ b/testing/web-platform/tests/content-security-policy/script-src/script-src-strict_dynamic_worker.https.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<script src='/resources/testharness.js'></script>
+<script src='/resources/testharnessreport.js'></script>
+<script src='../support/testharness-helper.js'></script>
+
+<meta http-equiv="content-security-policy" content="script-src 'nonce-abc' 'strict-dynamic'">
+
+<script nonce="abc">
+ assert_worker_is_loaded(
+ "../support/ping.js",
+ "Dedicated worker is allowed via 'strict-dynamic'");
+
+ assert_shared_worker_is_loaded(
+ "../support/ping.js",
+ "Shared worker is allowed via 'strict-dynamic'");
+
+ assert_service_worker_is_loaded(
+ "../support/ping.js",
+ "Service worker is allowed via 'strict-dynamic'");
+</script>