clairehurst pushed to branch tor-browser-149.0a1-16.0-2 at The Tor Project / Applications / Tor Browser Commits: 89ec9e9a by clairehurst at 2026-04-08T11:05:44-06:00 fixup! [android] Modify add-on support TB 44827: Always enable noscript for android - - - - - 2 changed files: - mobile/android/fenix/app/src/main/java/org/mozilla/fenix/FenixApplication.kt - mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/TorBrowserFeatures.kt Changes: ===================================== mobile/android/fenix/app/src/main/java/org/mozilla/fenix/FenixApplication.kt ===================================== @@ -133,6 +133,9 @@ import java.util.concurrent.TimeUnit import kotlin.math.roundToLong import mozilla.components.support.AppServicesInitializer.Config as AppServicesConfig +import org.mozilla.fenix.components.TorBrowserFeatures.NOSCRIPT_ID + + private const val RAM_THRESHOLD_MEGABYTES = 1024 private const val BYTES_TO_MEGABYTES_CONVERSION = 1024.0 * 1024.0 @@ -838,6 +841,15 @@ open class FenixApplication : Application(), Provider, ThemeProvider { components.useCases.tabsUseCases.selectTab(sessionId) }, onExtensionsLoaded = { extensions -> + // enable noscript if it is disabled + extensions.find { extension : WebExtension -> + extension.id == NOSCRIPT_ID + }?.let { noScript -> + if (!noScript.isEnabled()) { + components.core.engine.enableWebExtension(noScript) + } + } + // Delay until bootstrap is finished so that it will actually update tor-browser#44303 components.torController.registerRunOnceBootstrapped(object : RunOnceBootstrapped { override fun onBootstrapped() { ===================================== mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/TorBrowserFeatures.kt ===================================== @@ -24,7 +24,7 @@ import org.mozilla.fenix.tor.RunOnceBootstrapped object TorBrowserFeatures { private val logger = Logger("torbrowser-features") - private const val NOSCRIPT_ID = "{73a6fe31-595d-460b-a920-fcc0f8843232}" + const val NOSCRIPT_ID = "{73a6fe31-595d-460b-a920-fcc0f8843232}" private fun installNoScript( context: Context, View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/89ec9e9a... -- View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/89ec9e9a... You're receiving this email because of your account on gitlab.torproject.org. Manage all notifications: https://gitlab.torproject.org/-/profile/notifications | Help: https://gitlab.torproject.org/help