Bug 1172574 - Prevent the default browser check and the about:config warning by default for the scratch_user;r=mossop
authorBrian Grinstead <bgrinstead@mozilla.com>
Fri, 28 Jul 2017 15:38:30 -0700
changeset 420475 15dc693f7bb1d609f2fa858810b05ecd859489df
parent 420474 5a8f9c5240a27e03100ba1fdf6653ffabf7e49d2
child 420476 af665482a57dfbc858da67d9c167c34094fc18ea
push id7566
push usermtabara@mozilla.com
push dateWed, 02 Aug 2017 08:25:16 +0000
treeherdermozilla-beta@86913f512c3c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmossop
bugs1172574
milestone56.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 1172574 - Prevent the default browser check and the about:config warning by default for the scratch_user;r=mossop MozReview-Commit-ID: KNQyCrZo41O
python/mozbuild/mozbuild/mach_commands.py
--- a/python/mozbuild/mozbuild/mach_commands.py
+++ b/python/mozbuild/mozbuild/mach_commands.py
@@ -1324,17 +1324,20 @@ class RunProgram(MachCommandBase):
                 args.append('-no-remote')
 
             if not background and sys.platform == 'darwin':
                 args.append('-foreground')
 
             no_profile_option_given = \
                 all(p not in params for p in ['-profile', '--profile', '-P'])
             if no_profile_option_given and not noprofile:
-                prefs = { }
+                prefs = {
+                   'browser.shell.checkDefaultBrowser': False,
+                   'general.warnOnAboutConfig': False,
+                }
                 prefs.update(self._mach_context.settings.runprefs)
                 prefs.update([p.split('=', 1) for p in setpref])
                 for pref in prefs:
                     prefs[pref] = Preferences.cast(prefs[pref])
 
                 path = os.path.join(self.topobjdir, 'tmp', 'scratch_user')
                 profile = Profile(path, preferences=prefs)
                 args.append('-profile')