Skip to content
Snippets Groups Projects
Commit 7e67bfcb authored by Roger Yang's avatar Roger Yang Committed by Beatriz Rizental
Browse files

Bug 1862537 - Do not try to go back when it's a initial load...

Bug 1862537 - Do not try to go back when it's a initial load r=android-reviewers,harrisono, a=pascalc

Differential Revision: https://phabricator.services.mozilla.com/D219782
parent 1d5d7b14
Branches
Tags
1 merge request!1527Bug 43808: Rebase 128.10.1 onto 128.11
......@@ -1120,12 +1120,15 @@ class GeckoEngineSession(
return
}
// if it is an initial load then we can't go back. We should update the URL.
if (!initialLoad) {
appRedirectUrl?.let {
if (url == appRedirectUrl) {
goBack(false)
return
}
}
}
currentUrl = url
initialLoad = false
......
......@@ -1049,6 +1049,7 @@ class GeckoEngineSessionTest {
)
engineSession.settings.historyTrackingDelegate = historyTrackingDelegate
engineSession.appRedirectUrl = emptyPageUrl
engineSession.initialLoad = false
class MockHistoryList(
items: List<GeckoSession.HistoryDelegate.HistoryItem>,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment