Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

  • This WPT test may be referenced by the following Test IDs:
<!DOCTYPE html>
<meta http-equiv="Content-Security-Policy" content="
default-src 'none';
script-src blob: 'nonce-abc'">
<script nonce="abc" src="/resources/testharness.js"></script>
<script nonce="abc" src="/resources/testharnessreport.js"></script>
<script nonce="abc">
async_test(t => {
var script = document.createElement("script");
script.onerror = () => assert_unreached("FAIL should not have fired error event.");
script.onload = () => t.done();
script.src = URL.createObjectURL(new Blob(["alert('PASS executed blob URL script.');"]));
}, "blob: URL inherits CSP from a meta tag whose contents have newline characters.");