Bug 1649131 - Implement history.pushState/.replaceState for session history in the parent. r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D87039
This commit is contained in:
Peter Van der Beken
2020-08-23 17:41:03 +00:00
parent 90788d6b37
commit bcaca89c59
14 changed files with 642 additions and 181 deletions

View File

@@ -528,11 +528,14 @@ nsDocShellLoadState::GetLoadingSessionHistoryInfo() const {
}
void nsDocShellLoadState::SetLoadIsFromSessionHistory(
int32_t aRequestedIndex, int32_t aSessionHistoryLength) {
int32_t aRequestedIndex, int32_t aSessionHistoryLength,
bool aLoadingFromActiveEntry) {
if (mLoadingSessionHistoryInfo) {
mLoadingSessionHistoryInfo->mLoadIsFromSessionHistory = true;
mLoadingSessionHistoryInfo->mRequestedIndex = aRequestedIndex;
mLoadingSessionHistoryInfo->mSessionHistoryLength = aSessionHistoryLength;
mLoadingSessionHistoryInfo->mLoadingCurrentActiveEntry =
aLoadingFromActiveEntry;
}
}