diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-09-16 10:22:11 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-09-16 10:22:11 +0200 |
commit | ad30b9265193219b7050092aefb3dabc18a38faa (patch) | |
tree | 47c49fce95e09fb5f6b22276635ff7377802d3e9 /dom/workers/ServiceWorkerClients.cpp | |
parent | 351ffa462d2314c4b60369e2ba0f13b5d90f03b5 (diff) | |
download | UXP-ad30b9265193219b7050092aefb3dabc18a38faa.tar UXP-ad30b9265193219b7050092aefb3dabc18a38faa.tar.gz UXP-ad30b9265193219b7050092aefb3dabc18a38faa.tar.lz UXP-ad30b9265193219b7050092aefb3dabc18a38faa.tar.xz UXP-ad30b9265193219b7050092aefb3dabc18a38faa.zip |
Stop using the MainThreadTaskQueue from service workers.
Diffstat (limited to 'dom/workers/ServiceWorkerClients.cpp')
-rw-r--r-- | dom/workers/ServiceWorkerClients.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dom/workers/ServiceWorkerClients.cpp b/dom/workers/ServiceWorkerClients.cpp index 11f864443..38f49e355 100644 --- a/dom/workers/ServiceWorkerClients.cpp +++ b/dom/workers/ServiceWorkerClients.cpp @@ -753,7 +753,7 @@ ServiceWorkerClients::Get(const nsAString& aClientId, ErrorResult& aRv) RefPtr<GetRunnable> r = new GetRunnable(promiseProxy, aClientId); - MOZ_ALWAYS_SUCCEEDS(workerPrivate->DispatchToMainThread(r.forget())); + MOZ_ALWAYS_SUCCEEDS(NS_DispatchToMainThread(r)); return promise.forget(); } @@ -789,7 +789,7 @@ ServiceWorkerClients::MatchAll(const ClientQueryOptions& aOptions, new MatchAllRunnable(promiseProxy, NS_ConvertUTF16toUTF8(scope), aOptions.mIncludeUncontrolled); - MOZ_ALWAYS_SUCCEEDS(workerPrivate->DispatchToMainThread(r.forget())); + MOZ_ALWAYS_SUCCEEDS(NS_DispatchToMainThread(r)); return promise.forget(); } @@ -830,7 +830,7 @@ ServiceWorkerClients::OpenWindow(const nsAString& aUrl, RefPtr<OpenWindowRunnable> r = new OpenWindowRunnable(promiseProxy, aUrl, scope); - MOZ_ALWAYS_SUCCEEDS(workerPrivate->DispatchToMainThread(r.forget())); + MOZ_ALWAYS_SUCCEEDS(NS_DispatchToMainThread(r)); return promise.forget(); } @@ -859,6 +859,6 @@ ServiceWorkerClients::Claim(ErrorResult& aRv) RefPtr<ClaimRunnable> runnable = new ClaimRunnable(promiseProxy, NS_ConvertUTF16toUTF8(scope)); - MOZ_ALWAYS_SUCCEEDS(workerPrivate->DispatchToMainThread(runnable.forget())); + MOZ_ALWAYS_SUCCEEDS(NS_DispatchToMainThread(runnable)); return promise.forget(); } |