Bug 1669321 - [Fission] Crash in [@ mozilla::dom::SessionHistoryEntry::SetInfo], r=jesup

Differential Revision: https://phabricator.services.mozilla.com/D92999
This commit is contained in:
Olli Pettay
2020-10-08 22:15:17 +00:00
parent cb37b8bc62
commit 178385d0e2

View File

@@ -612,6 +612,10 @@ void CanonicalBrowsingContext::SetActiveSessionHistoryEntry(
void CanonicalBrowsingContext::ReplaceActiveSessionHistoryEntry(
SessionHistoryInfo* aInfo) {
if (!mActiveEntry) {
return;
}
mActiveEntry->SetInfo(aInfo);
// Notify children of the update
nsSHistory* shistory = static_cast<nsSHistory*>(GetSessionHistory());