diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:37 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:37 +0000 |
commit | a90a5cba08fdf6c0ceb95101c275108a152a3aed (patch) | |
tree | 532507288f3defd7f4dcf1af49698bcb76034855 /dom/workers/Worker.cpp | |
parent | Adding debian version 126.0.1-1. (diff) | |
download | firefox-a90a5cba08fdf6c0ceb95101c275108a152a3aed.tar.xz firefox-a90a5cba08fdf6c0ceb95101c275108a152a3aed.zip |
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/workers/Worker.cpp')
-rw-r--r-- | dom/workers/Worker.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dom/workers/Worker.cpp b/dom/workers/Worker.cpp index 88df53b877..6d85948d96 100644 --- a/dom/workers/Worker.cpp +++ b/dom/workers/Worker.cpp @@ -126,7 +126,7 @@ void Worker::PostMessage(JSContext* aCx, JS::Handle<JS::Value> aMessage, JS::ProfilingCategoryPair::DOM, flags); RefPtr<MessageEventRunnable> runnable = - new MessageEventRunnable(mWorkerPrivate, WorkerRunnable::WorkerThread); + new MessageEventRunnable(mWorkerPrivate); JS::CloneDataPolicy clonePolicy; // DedicatedWorkers are always part of the same agent cluster. @@ -157,7 +157,7 @@ void Worker::PostMessage(JSContext* aCx, JS::Handle<JS::Value> aMessage, // The worker could have closed between the time we entered this function and // checked ParentStatusProtected and now, which could cause the dispatch to // fail. - Unused << NS_WARN_IF(!runnable->Dispatch()); + Unused << NS_WARN_IF(!runnable->Dispatch(mWorkerPrivate)); } void Worker::PostMessage(JSContext* aCx, JS::Handle<JS::Value> aMessage, @@ -191,7 +191,7 @@ void Worker::PostEventWithOptions(JSContext* aCx, return; } - Unused << NS_WARN_IF(!aRunnable->Dispatch()); + Unused << NS_WARN_IF(!aRunnable->Dispatch(mWorkerPrivate)); } void Worker::Terminate() { |