Commit 4aea9c65 authored by Olli Pettay's avatar Olli Pettay
Browse files

Bug 1784387 - Crash in [@ nsDocShell::Reload] in ContentChild::RecvReload, r=mccr8

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
parent 8c3a6dad
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -4101,6 +4101,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));