Bug 1573932 - Disable extended triplets for certain policies. r=Mardak
authorMichael Kaply <mozilla@kaply.com>
Thu, 22 Aug 2019 17:44:51 +0000
changeset 489479 bef138f4cafb281419473a587afccab7d060ee29
parent 489478 ae9b04ed19567b14cbcc6e4831568e34e9b3fa8e
child 489480 03c01af7e1c8657d88366e4153b4f499e13777a4
push id93371
push usermozilla@kaply.com
push dateThu, 22 Aug 2019 17:45:33 +0000
treeherderautoland@bef138f4cafb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMardak
bugs1573932
milestone70.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1573932 - Disable extended triplets for certain policies. r=Mardak Differential Revision: https://phabricator.services.mozilla.com/D43095
browser/components/enterprisepolicies/Policies.jsm
--- a/browser/components/enterprisepolicies/Policies.jsm
+++ b/browser/components/enterprisepolicies/Policies.jsm
@@ -382,16 +382,17 @@ var Policies = {
       }
     },
   },
 
   DisableFirefoxAccounts: {
     onBeforeAddons(manager, param) {
       if (param) {
         setAndLockPref("identity.fxaccounts.enabled", false);
+        setAndLockPref("trailhead.firstrun.branches", "nofirstrun");
       }
     },
   },
 
   DisableFirefoxScreenshots: {
     onBeforeAddons(manager, param) {
       if (param) {
         setAndLockPref("extensions.screenshots.disabled", true);
@@ -962,16 +963,17 @@ var Policies = {
       setAndLockPref("signon.rememberSignons", param);
     },
   },
 
   OverrideFirstRunPage: {
     onProfileAfterChange(manager, param) {
       let url = param ? param.href : "";
       setAndLockPref("startup.homepage_welcome_url", url);
+      setAndLockPref("trailhead.firstrun.branches", "nofirstrun");
     },
   },
 
   OverridePostUpdatePage: {
     onProfileAfterChange(manager, param) {
       let url = param ? param.href : "";
       setAndLockPref("startup.homepage_override_url", url);
       // The pref startup.homepage_override_url is only used