summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/content-security-policy/unsafe-hashes/javascript_src_denied_wrong_hash-href_blank.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/content-security-policy/unsafe-hashes/javascript_src_denied_wrong_hash-href_blank.html')
-rw-r--r--testing/web-platform/tests/content-security-policy/unsafe-hashes/javascript_src_denied_wrong_hash-href_blank.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/testing/web-platform/tests/content-security-policy/unsafe-hashes/javascript_src_denied_wrong_hash-href_blank.html b/testing/web-platform/tests/content-security-policy/unsafe-hashes/javascript_src_denied_wrong_hash-href_blank.html
new file mode 100644
index 0000000000..257899af29
--- /dev/null
+++ b/testing/web-platform/tests/content-security-policy/unsafe-hashes/javascript_src_denied_wrong_hash-href_blank.html
@@ -0,0 +1,15 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+ <meta http-equiv="Content-Security-Policy" content="script-src 'unsafe-hashes' 'nonce-abc'
+ 'sha256-wrongwrongwrongwrongwrongwrongwrongwrongwro=';">
+ <script src="/resources/testharness.js" nonce="abc"></script>
+ <script src="/resources/testharnessreport.js" nonce="abc"></script>
+ <script src="support/helper.js" nonce="abc"></script>
+</head>
+<body>
+ <script nonce="abc">
+ runTest(false, '<a href target=_blank>', ' due to wrong hash');
+ </script>
+</body>
+</html>