tor-browser

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

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

Bug 1995303 - Hold strong reference to `mBC`, r=dom-core,smaug

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

Diffstat:
Mdom/broadcastchannel/BroadcastChannelChild.cpp | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/dom/broadcastchannel/BroadcastChannelChild.cpp b/dom/broadcastchannel/BroadcastChannelChild.cpp @@ -26,7 +26,8 @@ mozilla::ipc::IPCResult BroadcastChannelChild::RecvNotify( return IPC_OK(); } - mBC->MessageReceived(aData); + RefPtr<BroadcastChannel> self = mBC; + self->MessageReceived(aData); return IPC_OK(); } @@ -37,7 +38,8 @@ mozilla::ipc::IPCResult BroadcastChannelChild::RecvRefMessageDelivered( return IPC_OK(); } - mBC->MessageDelivered(aMessageID, aOtherBCs); + RefPtr<BroadcastChannel> self = mBC; + self->MessageDelivered(aMessageID, aOtherBCs); return IPC_OK(); }