1
0
Fork 0
firefox/testing/web-platform/tests/content-security-policy/inheritance/blob-inherits-from-meta-http-equiv-with-invalid-characters.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

19 lines
765 B
HTML

<!DOCTYPE html>
<html>
<head>
<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>
</head>
<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(["console.log('PASS executed blob URL script.');"]));
document.head.appendChild(script);
}, "blob: URL inherits CSP from a meta tag whose contents have newline characters.");
</script>
</html>