Source code

Revision control

Copy as Markdown

Other Tools

Test Info: Warnings

<!DOCTYPE html>
<!-- We add two CSP entries on purpose. The first one does nothing
for the purpose of this test, but we want to check that both are
inherited -->
<meta http-equiv="Content-Security-Policy" content="object-src: 'none'">
<meta http-equiv="Content-Security-Policy" content="script-src data: 'self' 'unsafe-inline'; connect-src 'self';">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src='../support/testharness-helper.js'></script>
.then(data => data.text())
text => assert_shared_worker_is_loaded(
"Shared worker with data: url inherits CSP",
"setTimeout blocked"));