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/ServiceWorkerWindowClient.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/ServiceWorkerWindowClient.cpp')
-rw-r--r-- | dom/workers/ServiceWorkerWindowClient.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dom/workers/ServiceWorkerWindowClient.cpp b/dom/workers/ServiceWorkerWindowClient.cpp index 2ce0603cf..bae747214 100644 --- a/dom/workers/ServiceWorkerWindowClient.cpp +++ b/dom/workers/ServiceWorkerWindowClient.cpp @@ -183,7 +183,7 @@ ServiceWorkerWindowClient::Focus(ErrorResult& aRv) const if (promiseProxy) { RefPtr<ClientFocusRunnable> r = new ClientFocusRunnable(mWindowId, promiseProxy); - MOZ_ALWAYS_SUCCEEDS(workerPrivate->DispatchToMainThread(r.forget())); + MOZ_ALWAYS_SUCCEEDS(NS_DispatchToMainThread(r)); } else { promise->MaybeReject(NS_ERROR_DOM_ABORT_ERR); } @@ -549,7 +549,7 @@ ServiceWorkerWindowClient::Navigate(const nsAString& aUrl, ErrorResult& aRv) if (promiseProxy) { RefPtr<ClientNavigateRunnable> r = new ClientNavigateRunnable(mWindowId, aUrl, scope, promiseProxy); - MOZ_ALWAYS_SUCCEEDS(workerPrivate->DispatchToMainThread(r.forget())); + MOZ_ALWAYS_SUCCEEDS(NS_DispatchToMainThread(r)); } else { promise->MaybeReject(NS_ERROR_DOM_ABORT_ERR); } |