gecko/toolkit/components/url-classifier/tests/mochitest/cleanWorker.js

11 lines
159 B
JavaScript
Raw Normal View History

onmessage = function() {
try {
importScripts("evilWorker.js");
} catch(ex) {
postMessage("success");
return;
}
postMessage("failure");
};