summaryrefslogtreecommitdiffstats
path: root/dom/locks/test/file_strongworker.js
blob: 36871ad31ac4b7d6c9f4ac511d9698c88a78615f (plain)
1
2
3
4
5
navigator.locks.request("exclusive", () => {
  const channel = new BroadcastChannel("strongworker");
  channel.postMessage("lock acquired");
});
postMessage("onload");