I've been all over the mozilla documentation trying to find out which command line arguments or userpreferences will prevent firefox from starting with two tabs open and also stop asking would I like to share usage statistics.
What command line argument or user preference can I set to stop Firefox browser from starting like that when I provide the -new-instance
flag?
For the startup pages, you might want to try setting
startup.homepage_welcome_url.additional
andstartup.homepage_welcome_url.additional
toabout:blank
.The bar that asks to share usage statistics is called the "data choices infobar", and it's controlled by the preferences documented here.
You could programmatically "view" the data policy, by setting
datareporting.policy.dataSubmissionPolicyNotifiedTime
to something like1483520304570
(the output ofDate.now()
) anddatareporting.policy.dataSubmissionPolicyAcceptedVersion
to 1. This will tell Firefox that you saw the bar. You could still disable data sharing usingdatareporting.healthreport.uploadEnabled
, if interested.