summaryrefslogtreecommitdiffstats
path: root/dom/workers/test/sharedWorker_privateBrowsing.js
diff options
context:
space:
mode:
Diffstat (limited to 'dom/workers/test/sharedWorker_privateBrowsing.js')
-rw-r--r--dom/workers/test/sharedWorker_privateBrowsing.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/dom/workers/test/sharedWorker_privateBrowsing.js b/dom/workers/test/sharedWorker_privateBrowsing.js
new file mode 100644
index 0000000000..c16bd209f0
--- /dev/null
+++ b/dom/workers/test/sharedWorker_privateBrowsing.js
@@ -0,0 +1,4 @@
+var counter = 0;
+onconnect = function (evt) {
+ evt.ports[0].postMessage(++counter);
+};