From 26a029d407be480d791972afb5975cf62c9360a6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 02:47:55 +0200 Subject: Adding upstream version 124.0.1. Signed-off-by: Daniel Baumann --- dom/locks/test/file_strongworker.js | 5 ++++ dom/locks/test/mochitest.toml | 5 ++++ dom/locks/test/test_strongworker.html | 44 +++++++++++++++++++++++++++++++++++ 3 files changed, 54 insertions(+) create mode 100644 dom/locks/test/file_strongworker.js create mode 100644 dom/locks/test/mochitest.toml create mode 100644 dom/locks/test/test_strongworker.html (limited to 'dom/locks/test') 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"); diff --git a/dom/locks/test/mochitest.toml b/dom/locks/test/mochitest.toml new file mode 100644 index 0000000000..f0dc745c0a --- /dev/null +++ b/dom/locks/test/mochitest.toml @@ -0,0 +1,5 @@ +[DEFAULT] +scheme = "https" + +["test_strongworker.html"] +support-files = ["file_strongworker.js"] diff --git a/dom/locks/test/test_strongworker.html b/dom/locks/test/test_strongworker.html new file mode 100644 index 0000000000..9c6905919c --- /dev/null +++ b/dom/locks/test/test_strongworker.html @@ -0,0 +1,44 @@ + + + + + + -- cgit v1.2.3