summaryrefslogtreecommitdiffstats
path: root/dom/workers/test/serviceworkers/fetch/context/sharedworker.js
diff options
context:
space:
mode:
Diffstat (limited to 'dom/workers/test/serviceworkers/fetch/context/sharedworker.js')
-rw-r--r--dom/workers/test/serviceworkers/fetch/context/sharedworker.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/dom/workers/test/serviceworkers/fetch/context/sharedworker.js b/dom/workers/test/serviceworkers/fetch/context/sharedworker.js
new file mode 100644
index 000000000..94dca5839
--- /dev/null
+++ b/dom/workers/test/serviceworkers/fetch/context/sharedworker.js
@@ -0,0 +1,5 @@
+onconnect = function(e) {
+ e.ports[0].start();
+ e.ports[0].postMessage("ack");
+ self.close();
+};