diff --git a/dom/ipc/ContentParent.cpp b/dom/ipc/ContentParent.cpp index 9912238b2774..ddc769185832 100644 --- a/dom/ipc/ContentParent.cpp +++ b/dom/ipc/ContentParent.cpp @@ -4408,6 +4408,10 @@ ContentParent::UnregisterRemoteFrame(const TabId& aTabId, ContentProcessManager* cpm = ContentProcessManager::GetSingleton(); ContentParent* cp = cpm->GetContentProcessById(aCpId); + if (!cp) { + return; + } + cp->NotifyTabDestroyed(aTabId, aMarkedDestroying); ContentProcessManager::GetSingleton()->UnregisterRemoteFrame(aCpId, aTabId);