summaryrefslogtreecommitdiff
path: root/dom/security/test/csp/file_sandbox_fail.js
diff options
context:
space:
mode:
Diffstat (limited to 'dom/security/test/csp/file_sandbox_fail.js')
-rw-r--r--dom/security/test/csp/file_sandbox_fail.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/dom/security/test/csp/file_sandbox_fail.js b/dom/security/test/csp/file_sandbox_fail.js
new file mode 100644
index 0000000000..5403ff2180
--- /dev/null
+++ b/dom/security/test/csp/file_sandbox_fail.js
@@ -0,0 +1,4 @@
+function ok(result, desc) {
+ window.parent.postMessage({ok: result, desc: desc}, "*");
+}
+ok(false, "documents sandboxed with allow-scripts should NOT be able to run <script src=...>");