Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Disable default browser check enterprise

  • 8 replies
  • 4 have this problem
  • 58 views
  • Last reply by cor-el

I'm trying to disable the Firefox default browser check on my Windows 7 x64 golden image for a VM pool. I've viewed quite a few articles and they all suggest that I add the following lines to my preferences file:

     pref("general.config.obscure_value", 0);
     pref("general.config.filename", "mozilla.cfg");

1. I add those lines and firefox does not open at all. 2. I disable the pref("general.config.obscure_value", 0); line from my preferences file and firefox opens without the default browser prompt, but only once. 3. I close Firefox and reopen it, and the default browser check is back. I can recycle through the three steps and reproduce it.

Not sure where to go from here. Any help would be appreciated.

I'm trying to disable the Firefox default browser check on my Windows 7 x64 golden image for a VM pool. I've viewed quite a few articles and they all suggest that I add the following lines to my preferences file: pref("general.config.obscure_value", 0); pref("general.config.filename", "mozilla.cfg"); 1. I add those lines and firefox does not open at all. 2. I disable the pref("general.config.obscure_value", 0); line from my preferences file and firefox opens without the default browser prompt, but only once. 3. I close Firefox and reopen it, and the default browser check is back. I can recycle through the three steps and reproduce it. Not sure where to go from here. Any help would be appreciated.

Chosen solution

I do notice a typo in the datareporting.policy.dataSubmissionPolicyAccepted line: "; false" instead of ",false"

pref("datareporting.policy.dataSubmissionPolicyAccepted'; false);

Read this answer in context 👍 1

All Replies (8)

Type about:preferences#general<enter> in the address bar.

Thanks for the response FredMcD, but this only affects the currently logged in user.

I want to disable it for any user that logs into the machine. The VM will be refreshed frequently meaning that all user profiles on the machine will be wiped (including any custom settings the user makes).

Did you create the mozilla.cfg file in the Firefox program folder?

Can you post the full content of this file?

The mozilla.cfg file is run as a JavaScript file and any errors in the file throw an error and abort the execution.

See also:

See attached screenshots. Thanks for the link; it was helpful in understanding these settings/toggles for a non-programmer like myself.

Also, I'm not seeing any errors. Firefox just simply doesn't open with the pref("general.config.obscure_value", 0); value enabled. I had the Windows Task Manager open when trying to run Firefox and it displays for a split-second and then disappears when watching the 'Processes' tab.

Chosen Solution

I do notice a typo in the datareporting.policy.dataSubmissionPolicyAccepted line: "; false" instead of ",false"

pref("datareporting.policy.dataSubmissionPolicyAccepted'; false);

Thank you. I made the change from a semi-colon to a comma. No change in my issue though :(

You had me on the right track though... It's not just a clever internet meme. Punctuation matters! I was missing quotation marks on that same line. I didn't add them (because I didn't notice) when I made the semi-colon change that you pointed out.

Thank you very much for your assistance on this!

You're welcome.

I missed that last single quote as well (should have pasted the correct line).