From f91879804f32164da2e5b43f0860900957f9530a Mon Sep 17 00:00:00 2001 From: Blake Kaplan Date: Wed, 22 Aug 2018 15:34:16 -0400 Subject: [PATCH] Bug 1480965 - Fix review nit. r=asuth --HG-- extra : rebase_source : 5403d4a11f6753d086fcc7a64314b72e31419a30 --- dom/serviceworkers/ServiceWorkerPrivate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom/serviceworkers/ServiceWorkerPrivate.cpp b/dom/serviceworkers/ServiceWorkerPrivate.cpp index 1e37079cb8d7..c9b81ce55884 100644 --- a/dom/serviceworkers/ServiceWorkerPrivate.cpp +++ b/dom/serviceworkers/ServiceWorkerPrivate.cpp @@ -1941,7 +1941,7 @@ ServiceWorkerPrivate::TerminateWorker() } Unused << NS_WARN_IF(!mWorkerPrivate->Cancel()); - mWorkerPrivate = nullptr; + RefPtr workerPrivate(mWorkerPrivate.forget()); mSupportsArray.Clear(); // Any pending events are never going to fire on this worker. Cancel