commit 53e70b0166c5563c6fbf15b0208b3bfee9f0aff5
parent 40ee7faa991c2375d42f8152e4ebe642fb2ca33d
Author: Adam Vandolder <avandolder@mozilla.com>
Date: Thu, 16 Oct 2025 14:30:28 +0000
Bug 1994531 - Always abort any previous ongoing navigation before firing a download request navigate event. r=dom-core,farre
Differential Revision: https://phabricator.services.mozilla.com/D268777
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/dom/navigation/Navigation.cpp b/dom/navigation/Navigation.cpp
@@ -1004,6 +1004,8 @@ 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.
+ InnerInformAboutAbortingNavigation(aCx);
+
// Step 3 to step 7
RefPtr<NavigationDestination> destination =
MakeAndAddRef<NavigationDestination>(GetOwnerGlobal(), aDestinationURL,