diff options
Diffstat (limited to 'dom/workers/WorkerEventTarget.cpp')
-rw-r--r-- | dom/workers/WorkerEventTarget.cpp | 7 |
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", |