mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-28 19:37:32 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
14
dom/workers/test/serviceworkers/thirdparty/sw.js
vendored
Normal file
14
dom/workers/test/serviceworkers/thirdparty/sw.js
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
self.addEventListener("fetch", function(event) {
|
||||
dump("fetch " + event.request.url + "\n");
|
||||
if (event.request.url.indexOf("iframe2.html") >= 0) {
|
||||
var body =
|
||||
"<script>" +
|
||||
"window.parent.postMessage({" +
|
||||
"source: 'iframe', status: 'swresponse'" +
|
||||
"}, '*');" +
|
||||
"</script>";
|
||||
event.respondWith(new Response(body, {
|
||||
headers: {'Content-Type': 'text/html'}
|
||||
}));
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue