Bug 1664655 - Update loading entry's layout history state if it shares it with the current active entry. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D90030
This commit is contained in:
@@ -3165,6 +3165,11 @@ NS_IMETHODIMP nsDocShell::SynchronizeLayoutHistoryState() {
|
||||
entry->SetLayoutHistoryState(mActiveEntry->GetLayoutHistoryState());
|
||||
}
|
||||
}
|
||||
if (mLoadingEntry &&
|
||||
mLoadingEntry->mInfo.SharedId() == mActiveEntry->SharedId()) {
|
||||
mLoadingEntry->mInfo.SetLayoutHistoryState(
|
||||
mActiveEntry->GetLayoutHistoryState());
|
||||
}
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
|
||||
Reference in New Issue
Block a user