summaryrefslogtreecommitdiffstats
path: root/dom/workers/WorkerEventTarget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dom/workers/WorkerEventTarget.cpp')
-rw-r--r--dom/workers/WorkerEventTarget.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/dom/workers/WorkerEventTarget.cpp b/dom/workers/WorkerEventTarget.cpp
index cb58b4f8ed..94ba7a8097 100644
--- a/dom/workers/WorkerEventTarget.cpp
+++ b/dom/workers/WorkerEventTarget.cpp
@@ -34,8 +34,7 @@ class WrappedControlRunnable final : public WorkerControlRunnable {
public:
WrappedControlRunnable(WorkerPrivate* aWorkerPrivate,
nsCOMPtr<nsIRunnable>&& aInner)
- : WorkerControlRunnable(aWorkerPrivate, "WrappedControlRunnable",
- WorkerThread),
+ : WorkerControlRunnable("WrappedControlRunnable"),
mInner(std::move(aInner)) {}
virtual bool PreDispatch(WorkerPrivate* aWorkerPrivate) override {
@@ -119,7 +118,7 @@ WorkerEventTarget::Dispatch(already_AddRefed<nsIRunnable> aRunnable,
RefPtr<WorkerRunnable> r =
mWorkerPrivate->MaybeWrapAsWorkerRunnable(runnable.forget());
- if (r->Dispatch()) {
+ if (r->Dispatch(mWorkerPrivate)) {
return NS_OK;
}
runnable = std::move(r);
@@ -134,7 +133,7 @@ WorkerEventTarget::Dispatch(already_AddRefed<nsIRunnable> aRunnable,
("WorkerEventTarget::Dispatch [%p] Wrapped runnable as control "
"runnable(%p)",
this, r.get()));
- if (!r->Dispatch()) {
+ if (!r->Dispatch(mWorkerPrivate)) {
LOGV(
("WorkerEventTarget::Dispatch [%p] Dispatch as control runnable(%p) "
"fail",