tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit fd640fd595ee079c1a902ab1874fb012f20a2a5d
parent c03c4fc1a71f4173766a1c2c19fdef661c2444c6
Author: moz-mdauer <mdauer@mozilla.com>
Date:   Tue, 21 Oct 2025 10:50:39 +0000

Bug 1995301 - Hold strong reference to `mOwner`, r=dom-core,smaug

Differential Revision: https://phabricator.services.mozilla.com/D269222

Diffstat:
Mdom/serviceworkers/ServiceWorkerRegistrationChild.cpp | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dom/serviceworkers/ServiceWorkerRegistrationChild.cpp b/dom/serviceworkers/ServiceWorkerRegistrationChild.cpp @@ -34,7 +34,8 @@ IPCResult ServiceWorkerRegistrationChild::RecvUpdateState( IPCResult ServiceWorkerRegistrationChild::RecvFireUpdateFound() { if (mOwner) { - mOwner->FireUpdateFound(); + RefPtr<ServiceWorkerRegistration> owner = mOwner; + owner->FireUpdateFound(); } return IPC_OK(); }