diff options
Diffstat (limited to 'toolkit/components/url-classifier/tests/mochitest/cleanWorker.js')
-rw-r--r-- | toolkit/components/url-classifier/tests/mochitest/cleanWorker.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/toolkit/components/url-classifier/tests/mochitest/cleanWorker.js b/toolkit/components/url-classifier/tests/mochitest/cleanWorker.js new file mode 100644 index 000000000..685648373 --- /dev/null +++ b/toolkit/components/url-classifier/tests/mochitest/cleanWorker.js @@ -0,0 +1,10 @@ +onmessage = function() { + try { + importScripts("evilWorker.js"); + } catch(ex) { + postMessage("success"); + return; + } + + postMessage("failure"); +}; |