Bug 1253605 - Do not display e10s checkbox as checked if e10s was blocked. r=jimm
MozReview-Commit-ID: 50u5Vx8B5kj
--- a/browser/components/preferences/in-content/main.js
+++ b/browser/components/preferences/in-content/main.js
@@ -90,18 +90,18 @@ var gMainPane = {
let e10sPref = document.getElementById("browser.tabs.remote.autostart");
let e10sTempPref = document.getElementById("e10sTempPref");
let e10sForceEnable = document.getElementById("e10sForceEnable");
let preffedOn = e10sPref.value || e10sTempPref.value || e10sForceEnable.value;
if (preffedOn) {
- // The checkbox is checked if e10s is preffed on.
- e10sCheckbox.checked = true;
+ // The checkbox is checked if e10s is preffed on and enabled.
+ e10sCheckbox.checked = Services.appinfo.browserTabsRemoteAutostart;
// but if it's force disabled, then the checkbox is disabled.
e10sCheckbox.disabled = !Services.appinfo.browserTabsRemoteAutostart;
}
#endif
#ifdef MOZ_DEV_EDITION