summaryrefslogtreecommitdiffstats
path: root/dom/workers/Worker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dom/workers/Worker.cpp')
-rw-r--r--dom/workers/Worker.cpp6
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() {