From 336eb1a0df98a8bdfc84f28431f0973b24a8fc09 Mon Sep 17 00:00:00 2001 From: "Randall E. Barker" Date: Tue, 29 Oct 2019 09:31:15 -0700 Subject: [PATCH] Dissable gecko signon prompt and enbale about:config for debug builds (#2092) --- .../org/mozilla/vrbrowser/browser/engine/SessionStore.java | 1 + .../org/mozilla/vrbrowser/browser/engine/SessionUtils.java | 1 + 2 files changed, 2 insertions(+) diff --git a/app/src/common/shared/org/mozilla/vrbrowser/browser/engine/SessionStore.java b/app/src/common/shared/org/mozilla/vrbrowser/browser/engine/SessionStore.java index 6e11a0751..c096392aa 100644 --- a/app/src/common/shared/org/mozilla/vrbrowser/browser/engine/SessionStore.java +++ b/app/src/common/shared/org/mozilla/vrbrowser/browser/engine/SessionStore.java @@ -82,6 +82,7 @@ public void setContext(Context context, Bundle aExtras) { if (BuildConfig.DEBUG) { runtimeSettingsBuilder.arguments(new String[] { "-purgecaches" }); runtimeSettingsBuilder.debugLogging(true); + runtimeSettingsBuilder.aboutConfigEnabled(true); } else { runtimeSettingsBuilder.debugLogging(SettingsStore.getInstance(context).isDebugLogginEnabled()); } diff --git a/app/src/common/shared/org/mozilla/vrbrowser/browser/engine/SessionUtils.java b/app/src/common/shared/org/mozilla/vrbrowser/browser/engine/SessionUtils.java index e9f3f5872..11ac4bf99 100644 --- a/app/src/common/shared/org/mozilla/vrbrowser/browser/engine/SessionUtils.java +++ b/app/src/common/shared/org/mozilla/vrbrowser/browser/engine/SessionUtils.java @@ -42,6 +42,7 @@ public static void vrPrefsWorkAround(Context aContext, Bundle aExtras) { out.write("pref(\"formhelper.autozoom\", false);\n".getBytes()); // Disable WebRender until it works with FxR out.write("pref(\"gfx.webrender.force-disabled\", true);\n".getBytes()); + out.write("pref(\"signon.rememberSignons\", false);\n".getBytes()); int msaa = SettingsStore.getInstance(aContext).getMSAALevel(); if (msaa > 0) { int msaaLevel = msaa == 2 ? 4 : 2;