summaryrefslogtreecommitdiffstats
path: root/dom/security/test/sri/rsf_csp_worker.js
diff options
context:
space:
mode:
Diffstat (limited to 'dom/security/test/sri/rsf_csp_worker.js')
-rw-r--r--dom/security/test/sri/rsf_csp_worker.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/dom/security/test/sri/rsf_csp_worker.js b/dom/security/test/sri/rsf_csp_worker.js
new file mode 100644
index 000000000..553fdf92b
--- /dev/null
+++ b/dom/security/test/sri/rsf_csp_worker.js
@@ -0,0 +1,9 @@
+postMessage("good_worker_could_load");
+try {
+ importScripts('rsf_imported.js');
+} catch(e) {
+ postMessage("good_worker_after_importscripts");
+}
+finally {
+ postMessage("finish");
+}