tor-browser

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

commit abe042f394d849e09031ad488d9363f661921888
parent bf30ffb3cfae9d84b3fc955eaf7bf1fbb2beff1f
Author: Adam Vandolder <avandolder@mozilla.com>
Date:   Wed,  5 Nov 2025 15:45:29 +0000

Bug 1998302 - Make sure session history is non-null before attempting to reconstruct the entry list after a session restore. r=dom-core,smaug

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

Diffstat:
Mdocshell/base/CanonicalBrowsingContext.cpp | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docshell/base/CanonicalBrowsingContext.cpp b/docshell/base/CanonicalBrowsingContext.cpp @@ -650,7 +650,7 @@ CanonicalBrowsingContext::CreateLoadingSessionHistoryEntryForLoad( if (sessionHistoryLoad && !mActiveEntry) { auto* activeEntries = GetActiveEntries(); - if (activeEntries->isEmpty()) { + if (activeEntries && activeEntries->isEmpty()) { nsSHistory* shistory = static_cast<nsSHistory*>(GetSessionHistory()); shistory->ReconstructContiguousEntryListFrom(entry); }