[tbb-commits] [Git][tpo/applications/fenix][tor-browser-102.2.1-12.0-1] amend! Modify Add-on support

ma1 (@ma1) git at gitlab.torproject.org
Thu Oct 6 11:13:36 UTC 2022



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/fadbafada200b1513f1de48440631c99a24c7ae6

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/fenix/-/commit/fadbafada200b1513f1de48440631c99a24c7ae6
You're receiving this email because of your account on gitlab.torproject.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tbb-commits/attachments/20221006/8d077d6f/attachment-0001.htm>


More information about the tbb-commits mailing list