1
0
Fork 0
firefox/testing/web-platform/tests/content-security-policy/script-src/scripthash-default-src.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

21 lines
690 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Security-Policy" content="default-src 'self' 'nonce-abc' 'sha256-sc3CeiHrlck5tH2tTC4MnBYFnI9D5zp8f9odqnmGQjE='; connect-src 'self';">
<title>script-hash allowed from default-src</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script nonce='abc'>
setup({ single_test: true });
window.addEventListener('securitypolicyviolation', function(e) {
assert_unreached("Should not have fired event");
});
</script>
<script>done();</script>
</head>
<body>
<div id="log"></div>
</body>
</html>