Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /service-workers/service-worker/service-worker-csp-script.https.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>Service Worker: CSP script directive for ServiceWorker script</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="resources/test-helpers.sub.js?pipe=sub"></script>
<script>
service_worker_test(
'resources/service-worker-csp-worker.py?directive=script',
'CSP test for script-src in ServiceWorkerGlobalScope');
</script>