summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/content-security-policy/script-src/scripthash-basic-blocked-error-event.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/content-security-policy/script-src/scripthash-basic-blocked-error-event.html')
-rw-r--r--testing/web-platform/tests/content-security-policy/script-src/scripthash-basic-blocked-error-event.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/testing/web-platform/tests/content-security-policy/script-src/scripthash-basic-blocked-error-event.html b/testing/web-platform/tests/content-security-policy/script-src/scripthash-basic-blocked-error-event.html
new file mode 100644
index 0000000000..62b869335f
--- /dev/null
+++ b/testing/web-platform/tests/content-security-policy/script-src/scripthash-basic-blocked-error-event.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<head>
+ <title>CSP script-hash block causes error event</title>
+ <script src="/resources/testharness.js"></script>
+ <script src="/resources/testharnessreport.js"></script>
+ <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'sha256-deadbeef'"></meta>
+</head>
+<body>
+ <script src="support/inline-script-should-be-blocked.js"></script>
+</body>