1
0
Fork 0
firefox/testing/web-platform/tests/content-security-policy/script-src/worker-set-timeout.sub.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

26 lines
793 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline' 'self' 'unsafe-eval'; connect-src 'self';">
<title>worker-set-timeout</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src='../support/testharness-helper.js'></script>
</head>
<body>
<script>
assert_worker_is_loaded(
"./support/worker-with-script-src-none-set-timeout.js",
"Dedicated worker delivers its own CSP",
"setTimeout blocked");
assert_shared_worker_is_loaded(
"./support/worker-with-script-src-none-set-timeout.js",
"Shared worker delivers its own CSP",
"setTimeout blocked");
</script>
</body>
</html>