Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit c20caf2

Browse files
authored
Only show multi-e10s setting for debug builds (#3153)
1 parent 8ae349f commit c20caf2

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

app/src/common/shared/org/mozilla/vrbrowser/browser/engine/SessionUtils.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import androidx.annotation.Nullable;
99

1010
import org.mozilla.gecko.GeckoProfile;
11+
import org.mozilla.vrbrowser.BuildConfig;
1112
import org.mozilla.vrbrowser.browser.SettingsStore;
1213
import org.mozilla.vrbrowser.utils.SystemUtils;
1314

@@ -43,8 +44,10 @@ public static void vrPrefsWorkAround(Context aContext, Bundle aExtras) {
4344
// Disable WebRender until it works with FxR
4445
out.write("pref(\"gfx.webrender.force-disabled\", true);\n".getBytes());
4546
out.write("pref(\"signon.rememberSignons\", false);\n".getBytes());
46-
int processCount = SettingsStore.getInstance(aContext).isMultiE10s() ? 3 : 1;
47-
out.write(("pref(\"dom.ipc.processCount\", " + processCount + ");\n").getBytes());
47+
if (BuildConfig.DEBUG) {
48+
int processCount = SettingsStore.getInstance(aContext).isMultiE10s() ? 3 : 1;
49+
out.write(("pref(\"dom.ipc.processCount\", " + processCount + ");\n").getBytes());
50+
}
4851
int msaa = SettingsStore.getInstance(aContext).getMSAALevel();
4952
if (msaa > 0) {
5053
int msaaLevel = msaa == 2 ? 4 : 2;

app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/settings/DeveloperOptionsView.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,13 @@ protected void updateUI() {
6969
mBinding.bypassCacheOnReloadSwitch.setOnCheckedChangeListener(mBypassCacheOnReloadListener);
7070
setBypassCacheOnReload(SettingsStore.getInstance(getContext()).isBypassCacheOnReloadEnabled(), false);
7171

72-
mBinding.multiE10sSwitch.setOnCheckedChangeListener(mMultiE10sListener);
73-
setMultiE10s(SettingsStore.getInstance(getContext()).isMultiE10s(), false);
74-
7572
if (BuildConfig.DEBUG) {
7673
mBinding.debugLoggingSwitch.setVisibility(View.GONE);
74+
mBinding.multiE10sSwitch.setOnCheckedChangeListener(mMultiE10sListener);
75+
setMultiE10s(SettingsStore.getInstance(getContext()).isMultiE10s(), false);
7776
} else {
77+
mBinding.multiE10sSwitch.setVisibility(View.GONE);
78+
mBinding.debugLoggingSwitch.setOnCheckedChangeListener(mDebugLogginListener);
7879
setDebugLogging(SettingsStore.getInstance(getContext()).isDebugLoggingEnabled(), false);
7980
}
8081

0 commit comments

Comments
 (0)