tor-browser

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

commit a52177c154e14d3f97fb423f3b457de4d4365df5
parent 4e44144ea28bb5b3323d4fe655eaac91f571bd4b
Author: Andreas Farre <farre@mozilla.com>
Date:   Tue, 18 Nov 2025 16:19:21 +0000

Bug 1997853 - Always abort any previous ongoing navigation before firing a traverse navigate event. r=dom-core,smaug

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

Diffstat:
Mdom/navigation/Navigation.cpp | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/dom/navigation/Navigation.cpp b/dom/navigation/Navigation.cpp @@ -921,6 +921,9 @@ bool Navigation::FireTraverseNavigateEvent( // in #fire-a-traverse-navigate-event have been moved to after step 25 in // #inner-navigate-event-firing-algorithm in our implementation. + // Work around for https://github.com/whatwg/html/issues/11802 + InnerInformAboutAbortingNavigation(aCx); + // Step 5 RefPtr<NavigationHistoryEntry> destinationNHE = FindNavigationHistoryEntry(aDestinationSessionHistoryInfo); @@ -1016,6 +1019,7 @@ bool Navigation::FireDownloadRequestNavigateEvent( // in #fire-a-download-request-navigate-event have been moved to after step // 25 in #inner-navigate-event-firing-algorithm in our implementation. + // Work around for https://github.com/whatwg/html/issues/11802 InnerInformAboutAbortingNavigation(aCx); // Step 3 to step 7