Bug 1711719 - Disable new tab menulist if preference is locked. r=Gijs,preferences-reviewers

Differential Revision: https://phabricator.services.mozilla.com/D143610
This commit is contained in:
Mike Kaply
2022-04-13 17:56:37 +00:00
parent 2220b1e85e
commit 1f239d1e44

View File

@@ -112,6 +112,7 @@ var gHomePane = {
if (newValue !== menulist.value) {
menulist.value = newValue;
}
menulist.disabled = Preferences.get(this.NEWTAB_ENABLED_PREF).locked;
// If change was triggered by installing an addon we need to update
// the value of the menulist to be that addon.
} else {