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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user