summaryrefslogtreecommitdiffstats
path: root/dom/workers/test/sharedWorker_lifetime.js
diff options
context:
space:
mode:
Diffstat (limited to 'dom/workers/test/sharedWorker_lifetime.js')
-rw-r--r--dom/workers/test/sharedWorker_lifetime.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/dom/workers/test/sharedWorker_lifetime.js b/dom/workers/test/sharedWorker_lifetime.js
new file mode 100644
index 0000000000..594bd5833d
--- /dev/null
+++ b/dom/workers/test/sharedWorker_lifetime.js
@@ -0,0 +1,5 @@
+onconnect = function (e) {
+ setTimeout(function () {
+ e.ports[0].postMessage("Still alive!");
+ }, 500);
+};