Skip to content
Snippets Groups Projects

Bug 40006: Expose Security Level interface

Compare and
3 files
+ 25
1
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -615,6 +615,14 @@ class GeckoEngine(
override var forceUserScalableContent: Boolean
get() = runtime.settings.forceUserScalableEnabled
set(value) { runtime.settings.forceUserScalableEnabled = value }
override var torSecurityLevel: Int
get() = runtime.settings.torSecurityLevel
set(value) {
value.let {
runtime.settings.torSecurityLevel = it
}
}
}.apply {
defaultSettings?.let {
this.javascriptEnabled = it.javascriptEnabled
@@ -631,6 +639,7 @@ class GeckoEngine(
this.fontSizeFactor = it.fontSizeFactor
this.forceUserScalableContent = it.forceUserScalableContent
this.loginAutofillEnabled = it.loginAutofillEnabled
this.torSecurityLevel = it.torSecurityLevel
}
}
Loading