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