summaryrefslogtreecommitdiffstats
path: root/dom/locks/test/file_strongworker.js
diff options
context:
space:
mode:
Diffstat (limited to 'dom/locks/test/file_strongworker.js')
-rw-r--r--dom/locks/test/file_strongworker.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/dom/locks/test/file_strongworker.js b/dom/locks/test/file_strongworker.js
new file mode 100644
index 0000000000..36871ad31a
--- /dev/null
+++ b/dom/locks/test/file_strongworker.js
@@ -0,0 +1,5 @@
+navigator.locks.request("exclusive", () => {
+ const channel = new BroadcastChannel("strongworker");
+ channel.postMessage("lock acquired");
+});
+postMessage("onload");