diff options
Diffstat (limited to 'dom/workers/test/serviceworkers/fetch/context/parentsharedworker.js')
-rw-r--r-- | dom/workers/test/serviceworkers/fetch/context/parentsharedworker.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/dom/workers/test/serviceworkers/fetch/context/parentsharedworker.js b/dom/workers/test/serviceworkers/fetch/context/parentsharedworker.js new file mode 100644 index 000000000..eac8d5e71 --- /dev/null +++ b/dom/workers/test/serviceworkers/fetch/context/parentsharedworker.js @@ -0,0 +1,8 @@ +onconnect = function(e) { + e.ports[0].start(); + var worker = new Worker("myworker?shared"); + worker.onmessage = function(e2) { + e.ports[0].postMessage(e2.data); + self.close(); + }; +}; |