tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit b03115e1a30178ce4484d3227798cc48dea8d397
parent e1bb90b66f88d2f1ff173f5c3247cf691169dcad
Author: Adam Vandolder <avandolder@mozilla.com>
Date:   Tue, 14 Oct 2025 14:21:09 +0000

Bug 1966674 - Part 3: Copy the NavigationAPIState to the new loadState when retargeting. r=dom-core,jjaschke

Differential Revision: https://phabricator.services.mozilla.com/D268073

Diffstat:
Mdocshell/base/nsDocShell.cpp | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/docshell/base/nsDocShell.cpp b/docshell/base/nsDocShell.cpp @@ -8655,6 +8655,8 @@ nsresult nsDocShell::PerformRetargeting(nsDocShellLoadState* aLoadState) { loadState->SetPostDataStream(aLoadState->PostDataStream()); loadState->SetIsFormSubmission(aLoadState->IsFormSubmission()); + loadState->SetNavigationAPIState(aLoadState->GetNavigationAPIState()); + rv = win->Open(spec, aLoadState->Target(), // window name u""_ns, // Features