summaryrefslogtreecommitdiffstats
path: root/toolkit/components/extensions/test/mochitest/webrequest_chromeworker.js
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/components/extensions/test/mochitest/webrequest_chromeworker.js')
-rw-r--r--toolkit/components/extensions/test/mochitest/webrequest_chromeworker.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/toolkit/components/extensions/test/mochitest/webrequest_chromeworker.js b/toolkit/components/extensions/test/mochitest/webrequest_chromeworker.js
new file mode 100644
index 000000000..ccfb2ac1f
--- /dev/null
+++ b/toolkit/components/extensions/test/mochitest/webrequest_chromeworker.js
@@ -0,0 +1,8 @@
+"use strict";
+
+onmessage = function(event) {
+ fetch("https://example.com/example.txt").then(() => {
+ postMessage("Done!");
+ });
+};
+