summaryrefslogtreecommitdiffstats
path: root/dom/workers/ServiceWorkerWindowClient.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-09-18 16:31:30 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-09-18 16:31:30 +0200
commitabb2a2a1d4fd755510d71b7a6985e5076ed8c2ce (patch)
tree15953e11c470eea03182a175f83d7e67062e0458 /dom/workers/ServiceWorkerWindowClient.cpp
parent89f2f76274916083a1533e8ead8374e12ccfa4a3 (diff)
parent0384dc34be59a77d74cc9a1f8e754694b95dd13a (diff)
downloadUXP-abb2a2a1d4fd755510d71b7a6985e5076ed8c2ce.tar
UXP-abb2a2a1d4fd755510d71b7a6985e5076ed8c2ce.tar.gz
UXP-abb2a2a1d4fd755510d71b7a6985e5076ed8c2ce.tar.lz
UXP-abb2a2a1d4fd755510d71b7a6985e5076ed8c2ce.tar.xz
UXP-abb2a2a1d4fd755510d71b7a6985e5076ed8c2ce.zip
Merge branch 'worker-fix'
Diffstat (limited to 'dom/workers/ServiceWorkerWindowClient.cpp')
-rw-r--r--dom/workers/ServiceWorkerWindowClient.cpp4
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);
}