1
0
Fork 0

Bug 1605454 - Adding experiment code for disabling webrender.

master
Kris Taeleman 2020-01-02 16:41:00 -08:00 committed by Emily Kager
parent 927bcc48a7
commit 2c4790de66
1 changed files with 5 additions and 0 deletions

View File

@ -6,6 +6,7 @@ import android.content.Context
import android.os.Bundle
import mozilla.components.browser.engine.gecko.glean.GeckoAdapter
import mozilla.components.lib.crash.handler.CrashHandlerService
import mozilla.components.service.experiments.Experiments
import org.mozilla.fenix.Config
import org.mozilla.fenix.utils.Settings
import org.mozilla.geckoview.GeckoRuntime
@ -39,6 +40,10 @@ object GeckoProvider {
.debugLogging(Config.channel.isDebug)
.build()
Experiments.withExperiment("control-webrender-rollout-for-fenix") {
runtimeSettings.extras.putInt("forcedisablewebrender", 1);
}
if (!Settings.getInstance(context).shouldUseAutoSize) {
runtimeSettings.automaticFontSizeAdjustment = false
val fontSize = Settings.getInstance(context).fontSizeFactor