Skip to content

Commit

Permalink
Strip GeckoView logs from release builds. (#1539)
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro authored and bluemarvin committed Aug 8, 2019
1 parent ff8fb56 commit cfecb35
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -8,6 +8,7 @@
import androidx.annotation.Nullable;

import org.mozilla.gecko.GeckoProfile;
import org.mozilla.vrbrowser.BuildConfig;
import org.mozilla.vrbrowser.browser.SettingsStore;

import java.io.File;
Expand Down Expand Up @@ -39,6 +40,8 @@ public static void vrPrefsWorkAround(Context aContext, Bundle aExtras) {
out.write("pref(\"media.webspeech.synth.enabled\", false);\n".getBytes());
// Prevent autozoom when giving a form field focus.
out.write("pref(\"formhelper.autozoom\", false);\n".getBytes());
String geckoLogLevel = BuildConfig.DEBUG ? "Debug" : "Warn";
out.write(("pref(\"geckoview.logging\", \"" + geckoLogLevel + "\");\n").getBytes());
// Uncomment this to enable WebRender. WARNING NOT READY FOR USAGE.
// out.write("pref(\"gfx.webrender.all\", true);\n".getBytes());
int msaa = SettingsStore.getInstance(aContext).getMSAALevel();
Expand Down

0 comments on commit cfecb35

Please sign in to comment.