Bug 1429185 - BlockAboutConfig policy should lock devtools.chrome.enabled to false;r=Felipe draft
authorJulian Descottes <jdescottes@mozilla.com>
Mon, 26 Feb 2018 18:36:27 +0100
changeset 760089 cf52daf3d5ec89b4b4b6925f78ea45254953dd76
parent 760088 78f5b5caa90c4586266b8a086344c7bce1544e74
push id100536
push userjdescottes@mozilla.com
push dateMon, 26 Feb 2018 21:31:17 +0000
reviewersFelipe
bugs1429185
milestone60.0a1
Bug 1429185 - BlockAboutConfig policy should lock devtools.chrome.enabled to false;r=Felipe MozReview-Commit-ID: CeU9lFGfZhC
browser/components/enterprisepolicies/Policies.jsm
--- a/browser/components/enterprisepolicies/Policies.jsm
+++ b/browser/components/enterprisepolicies/Policies.jsm
@@ -36,16 +36,17 @@ this.Policies = {
       }
     }
   },
 
   "BlockAboutConfig": {
     onBeforeUIStartup(manager, param) {
       if (param) {
         manager.disallowFeature("about:config", true);
+        setAndLockPref("devtools.chrome.enabled", false);
       }
     }
   },
 
   "BlockAboutProfiles": {
     onBeforeUIStartup(manager, param) {
       if (param) {
         manager.disallowFeature("about:profiles", true);