commit 3e04ec90d3f80e83da814b0908370dc44e51f47e
parent 19d1b3d2a3c0731e2e5eb467512e73655c479a25
Author: Adam Vandolder <avandolder@mozilla.com>
Date: Tue, 14 Oct 2025 14:21:10 +0000
Bug 1966674 - Part 6: Copy over the NavigationAPIState when initializing a SessionHistoryInfo from a nsDocShellLoadState. r=dom-core,jjaschke
Differential Revision: https://phabricator.services.mozilla.com/D268074
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/docshell/shistory/SessionHistoryEntry.cpp b/docshell/shistory/SessionHistoryEntry.cpp
@@ -55,6 +55,8 @@ SessionHistoryInfo::SessionHistoryInfo(nsDocShellLoadState* aLoadState,
? Nothing()
: Some(aLoadState->SrcdocData())),
mBaseURI(aLoadState->BaseURI()),
+ mNavigationState(static_cast<nsStructuredCloneContainer*>(
+ aLoadState->GetNavigationAPIState())),
mLoadReplace(aLoadState->LoadReplace()),
mHasUserActivation(aLoadState->HasValidUserGestureActivation()),
mSharedState(SharedState::Create(