blob: 586965d7ca52f3ec9b28ee994ecd687a2af5b752 [file] [log] [blame]
self.addEventListener("message", (event) => {
fetch("/resources/dummy.js").then(() => {
event.source.postMessage("FAIL - should have blocked dummy.js");
}).catch(() => {
fetch("/resources/dummy.css").then(() => {
event.source.postMessage("PASS - blocked dummy.js, allowed dummy.css");
}).catch(() => {
event.source.postMessage("FAIL - should have allowed dummy.css");
});
});
});