Bug 1750174 - Auto-refreshing pages reposition themselves to the top upon refresh. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D137383
This commit is contained in:
@@ -535,6 +535,11 @@ CanonicalBrowsingContext::CreateLoadingSessionHistoryEntryForLoad(
|
||||
return nullptr;
|
||||
}
|
||||
Unused << SetHistoryEntryCount(entry->BCHistoryLength());
|
||||
} else if (aLoadState->LoadType() == LOAD_REFRESH &&
|
||||
!ShouldAddEntryForRefresh(aLoadState->URI(),
|
||||
aLoadState->PostDataStream()) &&
|
||||
mActiveEntry) {
|
||||
entry = mActiveEntry;
|
||||
} else {
|
||||
entry = new SessionHistoryEntry(aLoadState, aChannel);
|
||||
if (IsTop()) {
|
||||
|
||||
Reference in New Issue
Block a user