brizental pushed to branch tor-browser-153.1.0esr-16.0-1 at The Tor Project / Applications / Tor Browser
Commits:
-
188d34fa
by Beatriz Rizental at 2026-08-26T19:01:14+02:00
1 changed file:
Changes:
| ... | ... | @@ -433,33 +433,6 @@ abstract class BaseBrowserFragment : |
| 433 | 433 | |
| 434 | 434 | initializeUI(view)
|
| 435 | 435 | |
| 436 | - appLinksFeature.set(
|
|
| 437 | - feature = AppLinksFeature(
|
|
| 438 | - context = requireContext(),
|
|
| 439 | - store = requireComponents.core.store,
|
|
| 440 | - fragmentManager = parentFragmentManager,
|
|
| 441 | - sessionId = customTabSessionId,
|
|
| 442 | - dialog = appLinksPromptDialog(),
|
|
| 443 | - launchInApp = { requireComponents.settings.shouldOpenLinksInApp(customTabSessionId != null) },
|
|
| 444 | - loadUrlUseCase = requireComponents.useCases.sessionUseCases.loadUrl,
|
|
| 445 | - shouldPrompt = { requireComponents.settings.shouldPromptOpenLinksInApp() },
|
|
| 446 | - alwaysOpenCheckboxAction = {
|
|
| 447 | - requireComponents.settings.openLinksInExternalApp =
|
|
| 448 | - requireContext().getString(R.string.pref_key_open_links_in_apps_always)
|
|
| 449 | - },
|
|
| 450 | - failedToLaunchAction = { fallbackUrl ->
|
|
| 451 | - fallbackUrl?.let {
|
|
| 452 | - val appLinksUseCases = requireComponents.useCases.appLinksUseCases
|
|
| 453 | - val getRedirect = appLinksUseCases.appLinkRedirect
|
|
| 454 | - val redirect = getRedirect.invoke(fallbackUrl)
|
|
| 455 | - appLinksUseCases.openAppLink.invoke(redirect.appIntent)
|
|
| 456 | - }
|
|
| 457 | - },
|
|
| 458 | - ),
|
|
| 459 | - owner = this,
|
|
| 460 | - view = binding.root,
|
|
| 461 | - )
|
|
| 462 | - |
|
| 463 | 436 | if (customTabSessionId == null) {
|
| 464 | 437 | // We currently only need this observer to navigate to home
|
| 465 | 438 | // in case all tabs have been removed on startup. No need to
|