Backed out 2 changesets (bug 1875040) for causing performance regression - Bug 1877481. CLOSED TREE

Backed out changeset 8af7503ecb57 (bug 1875040)
Backed out changeset 0e77ff8e2bfc (bug 1875040)
This commit is contained in:
Iulian Moraru
2024-02-15 17:40:41 +02:00
parent 0e1a0551f5
commit 27d6275d18
2 changed files with 18 additions and 3 deletions

View File

@@ -9436,7 +9436,7 @@ nsresult nsDocShell::InternalLoad(nsDocShellLoadState* aLoadState,
// separate check for SHIP so that we know if there are ongoing requests
// before calling Stop() below.
if (mozilla::SessionHistoryInParent()) {
Document* document = GetExtantDocument();
Document* document = GetDocument();
uint32_t flags = 0;
if (document && !document->CanSavePresentation(nullptr, flags, true)) {
// This forces some flags into the WindowGlobalParent's mBFCacheStatus,