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