Loading mobile/android/fenix/app/src/main/java/org/mozilla/fenix/FenixApplication.kt +15 −0 Original line number Diff line number Diff line Loading @@ -31,6 +31,7 @@ import kotlinx.coroutines.GlobalScope import kotlinx.coroutines.async import kotlinx.coroutines.launch import mozilla.appservices.autofill.AutofillApiException import mozilla.components.browser.engine.gecko.GeckoEngine import mozilla.components.browser.state.action.SystemAction import mozilla.components.browser.state.selector.selectedTab import mozilla.components.browser.state.store.BrowserStore Loading Loading @@ -702,6 +703,20 @@ open class FenixApplication : LocaleAwareApplication(), Provider { components.useCases.tabsUseCases.selectTab(sessionId) }, onExtensionsLoaded = { extensions -> // temp fix for tb#44591 "fails to initialize WebExtensions" // disable and enable each extension to properly initialize them extensions.forEach { extension -> if (extension.isEnabled()) { (components.core.engine as GeckoEngine).disableWebExtension( extension, onSuccess = { (components.core.engine as GeckoEngine).enableWebExtension(extension) }, ) } } // Delay until bootstrap is finished so that it will actually update tor-browser#44303 components.torController.registerRunOnceBootstrapped(object : RunOnceBootstrapped { override fun onBootstrapped() { Loading Loading
mobile/android/fenix/app/src/main/java/org/mozilla/fenix/FenixApplication.kt +15 −0 Original line number Diff line number Diff line Loading @@ -31,6 +31,7 @@ import kotlinx.coroutines.GlobalScope import kotlinx.coroutines.async import kotlinx.coroutines.launch import mozilla.appservices.autofill.AutofillApiException import mozilla.components.browser.engine.gecko.GeckoEngine import mozilla.components.browser.state.action.SystemAction import mozilla.components.browser.state.selector.selectedTab import mozilla.components.browser.state.store.BrowserStore Loading Loading @@ -702,6 +703,20 @@ open class FenixApplication : LocaleAwareApplication(), Provider { components.useCases.tabsUseCases.selectTab(sessionId) }, onExtensionsLoaded = { extensions -> // temp fix for tb#44591 "fails to initialize WebExtensions" // disable and enable each extension to properly initialize them extensions.forEach { extension -> if (extension.isEnabled()) { (components.core.engine as GeckoEngine).disableWebExtension( extension, onSuccess = { (components.core.engine as GeckoEngine).enableWebExtension(extension) }, ) } } // Delay until bootstrap is finished so that it will actually update tor-browser#44303 components.torController.registerRunOnceBootstrapped(object : RunOnceBootstrapped { override fun onBootstrapped() { Loading