summaryrefslogtreecommitdiffstats
path: root/dom/workers/WorkerRef.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dom/workers/WorkerRef.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/dom/workers/WorkerRef.cpp b/dom/workers/WorkerRef.cpp
index 9ba9841041..7935a7c67f 100644
--- a/dom/workers/WorkerRef.cpp
+++ b/dom/workers/WorkerRef.cpp
@@ -20,8 +20,7 @@ class ReleaseRefControlRunnable final : public WorkerControlRunnable {
public:
ReleaseRefControlRunnable(WorkerPrivate* aWorkerPrivate,
already_AddRefed<StrongWorkerRef> aRef)
- : WorkerControlRunnable(aWorkerPrivate, "ReleaseRefControlRunnable",
- WorkerThread),
+ : WorkerControlRunnable("ReleaseRefControlRunnable"),
mRef(std::move(aRef)) {
MOZ_ASSERT(mRef);
}
@@ -211,7 +210,7 @@ ThreadSafeWorkerRef::~ThreadSafeWorkerRef() {
WorkerPrivate* workerPrivate = mRef->mWorkerPrivate;
RefPtr<ReleaseRefControlRunnable> r =
new ReleaseRefControlRunnable(workerPrivate, mRef.forget());
- r->Dispatch();
+ r->Dispatch(workerPrivate);
return;
}
}