Bug 1535800 - Part 1: Handle a null mSessionHistory in ResumeRedirectedLoad, r=qdot

Differential Revision: https://phabricator.services.mozilla.com/D30558
This commit is contained in:
Nika Layzell
2019-05-09 21:07:41 +00:00
parent 26ae6f2c0b
commit 672d5b4855

View File

@@ -13150,7 +13150,7 @@ nsDocShell::ResumeRedirectedLoad(uint64_t aIdentifier, int32_t aHistoryIndex) {
// If we're performing a history load, locate the correct history entry,
// and set the relevant bits on our loadState.
if (aHistoryIndex >= 0) {
if (aHistoryIndex >= 0 && self->mSessionHistory) {
nsCOMPtr<nsISHistory> legacySHistory =
self->mSessionHistory->LegacySHistory();