commit 0feea4bb9f879d9d8d1f09ff607e257cfd7f8193
parent ec3055a6d507bdfd9c77f1b79b96d6199f9872b5
Author: Andreas Farre <farre@mozilla.com>
Date: Thu, 11 Dec 2025 18:08:35 +0000
Bug 2005573 - Don't log that there's no entry when there is. r=sfarre
Differential Revision: https://phabricator.services.mozilla.com/D276031
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/dom/navigation/Navigation.cpp b/dom/navigation/Navigation.cpp
@@ -1828,6 +1828,7 @@ void Navigation::SetCurrentEntryIndex(const SessionHistoryInfo* aTargetInfo) {
if (auto* entry = FindNavigationHistoryEntry(*aTargetInfo)) {
MOZ_ASSERT(entry->Index() >= 0);
mCurrentEntryIndex = Some(entry->Index());
+ return;
}
LOG_FMTW("Session history entry did not exist");