diff options
Diffstat (limited to 'dom/workers/WorkerDocumentListener.cpp')
-rw-r--r-- | dom/workers/WorkerDocumentListener.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/dom/workers/WorkerDocumentListener.cpp b/dom/workers/WorkerDocumentListener.cpp index cdbe30e072..a5285f7ad9 100644 --- a/dom/workers/WorkerDocumentListener.cpp +++ b/dom/workers/WorkerDocumentListener.cpp @@ -52,11 +52,10 @@ void WorkerDocumentListener::OnVisible(bool aVisible) { return; } - class VisibleRunnable final : public WorkerRunnable { + class VisibleRunnable final : public WorkerThreadRunnable { public: VisibleRunnable(WorkerPrivate* aWorkerPrivate, bool aVisible) - : WorkerRunnable(aWorkerPrivate, "VisibleRunnable"), - mVisible(aVisible) {} + : WorkerThreadRunnable("VisibleRunnable"), mVisible(aVisible) {} bool WorkerRun(JSContext* aCx, WorkerPrivate* aWorkerPrivate) { WorkerGlobalScope* scope = aWorkerPrivate->GlobalScope(); @@ -70,7 +69,7 @@ void WorkerDocumentListener::OnVisible(bool aVisible) { }; auto runnable = MakeRefPtr<VisibleRunnable>(mWorkerRef->Private(), aVisible); - runnable->Dispatch(); + runnable->Dispatch(mWorkerRef->Private()); } void WorkerDocumentListener::SetListening(uint64_t aWindowID, bool aListen) { |