commit 768c94aed51ae4232560922471269b641820768b
parent 188ef52248cb7e4c79ccd8f3176c4a42365577ba
Author: Andreas Farre <farre@mozilla.com>
Date: Thu, 20 Nov 2025 13:11:50 +0000
Bug 2001119 - Pass by reference to avoid copy. r=dom-core,smaug
Differential Revision: https://phabricator.services.mozilla.com/D273389
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dom/navigation/Navigation.cpp b/dom/navigation/Navigation.cpp
@@ -939,7 +939,7 @@ bool Navigation::FireTraverseNavigateEvent(
.andThen([](auto& aDocShell) {
return ToMaybeRef(aDocShell.GetActiveSessionHistoryInfo());
})
- .map([aDestinationSessionHistoryInfo](auto& aSessionHistoryInfo) {
+ .map([&aDestinationSessionHistoryInfo](auto& aSessionHistoryInfo) {
return aDestinationSessionHistoryInfo.SharesDocumentWith(
aSessionHistoryInfo);
})