ma1 pushed to branch tor-browser-147.0a1-16.0-2 at The Tor Project /
Applications / Tor Browser
Commits:
9dc8507f by hackademix at 2026-02-04T08:20:12+01:00
TB 44591: Force extensions initialization on startup.
- - - - -
1 changed file:
- mobile/android/fenix/app/src/main/java/org/mozilla/fenix/FenixApplication.kt
Changes:
=====================================
mobile/android/fenix/app/src/main/java/org/mozilla/fenix/FenixApplication.kt
=====================================
@@ -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
@@ -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() {
View it on GitLab:
https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/9dc8507fb32e04eb8283f47f8ec958319d5eab81
--
View it on GitLab:
https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/9dc8507fb32e04eb8283f47f8ec958319d5eab81
You're receiving this email because of your account on gitlab.torproject.org.
_______________________________________________
tor-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]