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:
Peter Van der Beken
2020-09-18 16:49:41 +00:00
parent 2bf1a15510
commit b5c7f56328

View File

@@ -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;