Bug 1758664, don't try to recheck possible session history entry in the parent process if we're doing such check already, r=peterv

The code which this patch removes was clearly an oversight in the regressing patch.

Differential Revision: https://phabricator.services.mozilla.com/D140690
This commit is contained in:
Olli Pettay
2022-03-10 10:19:57 +00:00
parent 9f1ed28e57
commit 6578f106a0
4 changed files with 56 additions and 5 deletions

View File

@@ -791,11 +791,6 @@ nsresult nsDocShell::LoadURI(nsDocShellLoadState* aLoadState,
("nsDocShell[%p]: loading %s with flags 0x%08x", this,
aLoadState->URI()->GetSpecOrDefault().get(), aLoadState->LoadFlags()));
// Always clear mCheckingSessionHistory. MaybeHandleSubframeHistory uses it
// internally when querying session history information from the parent
// process.
mCheckingSessionHistory = false;
if ((!aLoadState->LoadIsFromSessionHistory() &&
!LOAD_TYPE_HAS_FLAGS(aLoadState->LoadType(),
LOAD_FLAGS_REPLACE_HISTORY)) ||