ma1 pushed to branch tor-browser-102.2.1-12.0-1 at The Tor Project / Applications / fenix
Commits: fadbafad by hackademix at 2022-10-06T11:27:32+02:00 amend! Modify Add-on support
Modify add-on support
Bug 41160: One-time ultimate switch Tor Browser Android to HTTPS-Only. Bug 41159: Remove HTTPS-Everywhere extension from Tor Browser Android.
Bug 41094: Enable HTTPS-Only Mode by default in Tor Browser Android.
Bug 40225: Bundled extensions don't get updated with Android Tor Browser updates.
Bug 40030: Install NoScript addon on startup.
Also 40070: Consider storing the list of recommended addons
This implements our own AddonsProvider, which loads the list of available addons from assets instead of fetching it from an endpoint.
Also, we hide the uninstall button for builtin addons.
Bug 40058: Hide option for disallowing addon in private mode
- - - - -
1 changed file:
- app/src/main/java/org/mozilla/fenix/components/TorBrowserFeatures.kt
Changes:
===================================== app/src/main/java/org/mozilla/fenix/components/TorBrowserFeatures.kt ===================================== @@ -98,10 +98,14 @@ object TorBrowserFeatures { fun install(context: Context, runtime: WebExtensionRuntime) { val settings = context.settings() /** - * Remove HTTPS Everywhere if we didn't yet, unless HTTPS-Only is disabled, which might - * mean user opted out from the built-in mechanism and still relies on the extension. + * Remove HTTPS Everywhere if we didn't yet. */ - if (!settings.httpsEverywhereRemoved && settings.shouldUseHttpsOnly) { + if (!settings.httpsEverywhereRemoved) { + /** + * Ensure HTTPS-Only is enabled. + */ + settings.shouldUseHttpsOnly = true + settings.shouldUseHttpsOnlyInAllTabs = true uninstallHTTPSEverywhere( runtime, onSuccess = {
View it on GitLab: https://gitlab.torproject.org/tpo/applications/fenix/-/commit/fadbafada200b1...
tbb-commits@lists.torproject.org