Pier Angelo Vendrame pushed to branch android-components-102.0.14-12.0-1 at The Tor Project / Applications / android-components

Commits:

2 changed files:

Changes:

  • components/browser/engine-gecko/src/main/java/mozilla/components/browser/engine/gecko/GeckoEngine.kt
    ... ... @@ -741,6 +741,13 @@ class GeckoEngine(
    741 741
                         localeUpdater.updateValue()
    
    742 742
                     }
    
    743 743
                 }
    
    744
    +        override var prioritizeOnions: Boolean
    
    745
    +            get() = runtime.settings.prioritizeOnions
    
    746
    +            set(value) {
    
    747
    +                value.let {
    
    748
    +                    runtime.settings.prioritizeOnions = it
    
    749
    +                }
    
    750
    +            }
    
    744 751
         }.apply {
    
    745 752
             defaultSettings?.let {
    
    746 753
                 this.javascriptEnabled = it.javascriptEnabled
    
    ... ... @@ -762,6 +769,7 @@ class GeckoEngine(
    762 769
                 this.httpsOnlyMode = it.httpsOnlyMode
    
    763 770
                 this.torSecurityLevel = it.torSecurityLevel
    
    764 771
                 this.spoofEnglish = it.spoofEnglish
    
    772
    +            this.prioritizeOnions = it.prioritizeOnions
    
    765 773
             }
    
    766 774
         }
    
    767 775
     
    

  • components/concept/engine/src/main/java/mozilla/components/concept/engine/Settings.kt
    ... ... @@ -196,6 +196,8 @@ abstract class Settings {
    196 196
         open var torSecurityLevel: Int by UnsupportedSetting()
    
    197 197
     
    
    198 198
         open var spoofEnglish: Boolean by UnsupportedSetting()
    
    199
    +
    
    200
    +    open var prioritizeOnions: Boolean by UnsupportedSetting()
    
    199 201
     }
    
    200 202
     
    
    201 203
     /**
    
    ... ... @@ -235,7 +237,8 @@ data class DefaultSettings(
    235 237
         override var enterpriseRootsEnabled: Boolean = false,
    
    236 238
         override var httpsOnlyMode: Engine.HttpsOnlyMode = Engine.HttpsOnlyMode.DISABLED,
    
    237 239
         override var torSecurityLevel: Int = 4,
    
    238
    -    override var spoofEnglish: Boolean = false
    
    240
    +    override var spoofEnglish: Boolean = false,
    
    241
    +    override var prioritizeOnions: Boolean = false
    
    239 242
     ) : Settings()
    
    240 243
     
    
    241 244
     class UnsupportedSetting<T> {