[tor-commits] [tor-browser] 40/73: Bug 1784387 - Crash in [@ nsDocShell::Reload] in ContentChild::RecvReload, r=mccr8 a=RyanVM

gitolite role git at cupani.torproject.org
Wed Sep 21 20:17:33 UTC 2022


This is an automated email from the git hooks/post-receive script.

richard pushed a commit to branch geckoview-102.3.0esr-12.0-1
in repository tor-browser.

commit 4646c658689224df195ead244b1ded590bfabe5f
Author: Olli Pettay <Olli.Pettay at helsinki.fi>
AuthorDate: Mon Aug 15 15:50:27 2022 +0000

    Bug 1784387 - Crash in [@ nsDocShell::Reload] in ContentChild::RecvReload, r=mccr8 a=RyanVM
    
    No test, since the patch is based on the crash reports. Creating a test which relies on some race conditions through IPC is hard.
    
    Differential Revision: https://phabricator.services.mozilla.com/D154634
---
 docshell/base/nsDocShell.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/docshell/base/nsDocShell.cpp b/docshell/base/nsDocShell.cpp
index d20c847dd74a0..f886070364b68 100644
--- a/docshell/base/nsDocShell.cpp
+++ b/docshell/base/nsDocShell.cpp
@@ -4132,6 +4132,7 @@ nsDocShell::Reload(uint32_t aReloadFlags) {
     if (!XRE_IsParentProcess()) {
       RefPtr<nsDocShell> docShell(this);
       nsCOMPtr<nsIContentViewer> cv(mContentViewer);
+      NS_ENSURE_STATE(cv);
 
       bool okToUnload = true;
       MOZ_TRY(cv->PermitUnload(&okToUnload));

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the tor-commits mailing list