ma1 pushed to branch tor-browser-102.2.1-12.0-1 at The Tor Project / Applications / fenix

Commits:

1 changed file:

Changes:

  • app/src/main/java/org/mozilla/fenix/components/TorBrowserFeatures.kt
    ... ... @@ -98,10 +98,14 @@ object TorBrowserFeatures {
    98 98
         fun install(context: Context, runtime: WebExtensionRuntime) {
    
    99 99
             val settings = context.settings()
    
    100 100
             /**
    
    101
    -         * Remove HTTPS Everywhere if we didn't yet, unless HTTPS-Only is disabled, which might
    
    102
    -         * mean user opted out from the built-in mechanism and still relies on the extension.
    
    101
    +         * Remove HTTPS Everywhere if we didn't yet.
    
    103 102
              */
    
    104
    -        if (!settings.httpsEverywhereRemoved && settings.shouldUseHttpsOnly) {
    
    103
    +        if (!settings.httpsEverywhereRemoved) {
    
    104
    +            /**
    
    105
    +             * Ensure HTTPS-Only is enabled.
    
    106
    +             */
    
    107
    +            settings.shouldUseHttpsOnly = true
    
    108
    +            settings.shouldUseHttpsOnlyInAllTabs = true
    
    105 109
                 uninstallHTTPSEverywhere(
    
    106 110
                     runtime,
    
    107 111
                     onSuccess = {