[fenix] For https://github.com/mozilla-mobile/fenix/issues/5025 - Do not remove custom tab session with config removed

pull/600/head
Emily Kager 5 years ago committed by Sebastian Kaspari
parent d0fa780907
commit a4172aafae

@ -52,7 +52,10 @@ open class CustomTabActivity : HomeActivity() {
// then there's no way to get back to it other than relaunching it.
val sessionId = getIntentSessionId(SafeIntent(intent))
components.core.sessionManager.runWithSession(sessionId) { session ->
remove(session)
// If the custom tag config has been removed we are opening this in normal browsing
if (session.customTabConfig != null) {
remove(session)
}
true
}
}

Loading…
Cancel
Save