tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 5df4e70b8d9bee6136b6535ddacde4592d72f354
parent 99f4e2d92c882b96f81a01975e110dcc9c4fb29a
Author: Gae24 <96017547+Gae24@users.noreply.github.com>
Date:   Fri, 31 Oct 2025 08:42:00 +0000

Bug 1996517 [wpt PR 55668] - wpt: avoid checking if worker is instanceof SharedWorker in abrupt-completion.html, a=testonly

Automatic update from web-platform-tests
avoid SharedWorker check

Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>

--

wpt-commits: 7d5b077db6bdc2203fb1b0bdaefa76b5647fd0ea
wpt-pr: 55668

Diffstat:
Mtesting/web-platform/tests/workers/abrupt-completion.html | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/testing/web-platform/tests/workers/abrupt-completion.html b/testing/web-platform/tests/workers/abrupt-completion.html @@ -34,10 +34,10 @@ async function testWorker(worker) { resolve(); }; - if (worker instanceof SharedWorker) { - worker.port.postMessage("", [channel.port2]); - } else { + if ('onmessage' in worker) { // dedicated worker worker.postMessage("", [channel.port2]); + } else { // shared worker + worker.port.postMessage("", [channel.port2]); } }); }