Closed Bug 1501085 Opened 6 years ago Closed 6 years ago

Add a way to set prefs in mozconfig

Categories

(Firefox Build System :: General, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: qdot, Assigned: qdot)

Details

It'd be nice to be able to set prefs in generated development profiles via mozconfig, for doing things like setting new tabs to about:blank by default for debug builds.
This is already possible via machrc. If you create a machrc file in ~/.mozbuild like so mach settings ~/.mozbuild/machrc there will be a [runprefs] block in there that is used whenever 'mach run' is used to start the browser. Adding the following prefs turns off all new profile loads and just starts the browser with about:blank: [runprefs] browser.startup.blankWindow=true browser.newtabpage.enabled=false browser.startup.firstrunSkipsHomepage=true browser.startup.homepage=about:blank datareporting.policy.dataSubmissionPolicyBypassNotification=true
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.