[tor-commits] [tor-browser] 14/43: Bug 1711719 - Disable new tab menulist if preference is locked. r=Gijs, a=RyanVM

gitolite role git at cupani.torproject.org
Tue May 31 07:06:57 UTC 2022


This is an automated email from the git hooks/post-receive script.

pierov pushed a commit to branch tor-browser-91.10.0esr-11.0-1
in repository tor-browser.

commit cfb69ad3d23b1b9bd12df3f31dd871646269b478
Author: Mike Kaply <mozilla at kaply.com>
AuthorDate: Wed Apr 13 17:56:37 2022 +0000

    Bug 1711719 - Disable new tab menulist if preference is locked. r=Gijs, a=RyanVM
    
    Differential Revision: https://phabricator.services.mozilla.com/D143610
---
 browser/components/preferences/home.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/browser/components/preferences/home.js b/browser/components/preferences/home.js
index 1996d2241a5e6..ba6da27f4f56b 100644
--- a/browser/components/preferences/home.js
+++ b/browser/components/preferences/home.js
@@ -117,6 +117,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 {

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the tor-commits mailing list