Backed out changeset d25df1c9e0e2 (bug 1729662) for causing wpt failures in overlapping-navigations-and-traversals
CLOSED TREE
This commit is contained in:
@@ -8635,7 +8635,7 @@ bool nsDocShell::IsSameDocumentNavigation(nsDocShellLoadState* aLoadState,
|
||||
}
|
||||
|
||||
if (aState.mHistoryNavBetweenSameDoc &&
|
||||
!aLoadState->GetLoadingSessionHistoryInfo()->mLoadingCurrentEntry) {
|
||||
!aLoadState->GetLoadingSessionHistoryInfo()->mLoadingCurrentActiveEntry) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -11750,12 +11750,13 @@ nsresult nsDocShell::LoadHistoryEntry(const LoadingSessionHistoryInfo& aEntry,
|
||||
loadState->SetHasValidUserGestureActivation(
|
||||
loadState->HasValidUserGestureActivation() || aUserActivation);
|
||||
|
||||
return LoadHistoryEntry(loadState, aLoadType, aEntry.mLoadingCurrentEntry);
|
||||
return LoadHistoryEntry(loadState, aLoadType,
|
||||
aEntry.mLoadingCurrentActiveEntry);
|
||||
}
|
||||
|
||||
nsresult nsDocShell::LoadHistoryEntry(nsDocShellLoadState* aLoadState,
|
||||
uint32_t aLoadType,
|
||||
bool aLoadingCurrentEntry) {
|
||||
bool aReloadingActiveEntry) {
|
||||
if (!IsNavigationAllowed()) {
|
||||
return NS_OK;
|
||||
}
|
||||
@@ -11776,7 +11777,7 @@ nsresult nsDocShell::LoadHistoryEntry(nsDocShellLoadState* aLoadState,
|
||||
rv = CreateAboutBlankContentViewer(
|
||||
aLoadState->PrincipalToInherit(),
|
||||
aLoadState->PartitionedPrincipalToInherit(), nullptr, nullptr,
|
||||
/* aIsInitialDocument */ false, Nothing(), !aLoadingCurrentEntry);
|
||||
/* aIsInitialDocument */ false, Nothing(), !aReloadingActiveEntry);
|
||||
|
||||
if (NS_FAILED(rv)) {
|
||||
// The creation of the intermittent about:blank content
|
||||
|
||||
Reference in New Issue
Block a user