Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Search Support

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

Validate Mozilla.cfg File

  • 1 phendula
  • 2 inale ngxaki
  • 11 views
  • Impendulo yokugqibela ngu cor-el

more options

Hi,

I'm trying to set up some default configuration options for all users on the computer with a mozilla.cfg file. When it is in place, Firefox won't open. I get a "Failed to read the configuration file. Please contact your system administrator." This worked yesterday. I'm using Firefox 31.6.0 ESR. Is there a way I can validate this file somehow? I have no idea where to even begin in troubleshooting the text in the file. I also have to mention that none of this would be necessary if Mozilla didn't include so many annoying first-run pop-ups and settings by default. Here's the mozilla.cfg file:

// Defaults incl disable hardware acceleration lockPref("app.update.auto", false); lockPref("app.update.enabled", false); pref("layers.acceleration.disabled", true); pref("network.cookie.alwaysAcceptSessionCookies", true); pref("network.cookie.cookieBehavior", 1);

// Don't show 'know your rights' on first run pref("browser.rights.3.shown", true);

// Don't show WhatsNew on first run after every update pref("browser.startup.homepage_override.mstone","ignore");

// Disable plugin checking lockPref("plugins.hide_infobar_for_outdated_plugin", true); clearPref("plugins.update.url");

// Disable health reporter lockPref("datareporting.healthreport.service.enabled", false); lockpref("datareporting.healthreport.uploadEnabled", false);

// Disable crash reporter lockPref("toolkit.crashreporter.enabled", false); Components.classes["@mozilla.org/toolkit/crash-reporter;1"].getService(Components.interfaces.nsICrashReporter).submitReports = false;

Thanks in advance

Hi, I'm trying to set up some default configuration options for all users on the computer with a mozilla.cfg file. When it is in place, Firefox won't open. I get a "Failed to read the configuration file. Please contact your system administrator." This worked yesterday. I'm using Firefox 31.6.0 ESR. Is there a way I can validate this file somehow? I have no idea where to even begin in troubleshooting the text in the file. I also have to mention that none of this would be necessary if Mozilla didn't include so many annoying first-run pop-ups and settings by default. Here's the mozilla.cfg file: // Defaults incl disable hardware acceleration lockPref("app.update.auto", false); lockPref("app.update.enabled", false); pref("layers.acceleration.disabled", true); pref("network.cookie.alwaysAcceptSessionCookies", true); pref("network.cookie.cookieBehavior", 1); // Don't show 'know your rights' on first run pref("browser.rights.3.shown", true); // Don't show WhatsNew on first run after every update pref("browser.startup.homepage_override.mstone","ignore"); // Disable plugin checking lockPref("plugins.hide_infobar_for_outdated_plugin", true); clearPref("plugins.update.url"); // Disable health reporter lockPref("datareporting.healthreport.service.enabled", false); lockpref("datareporting.healthreport.uploadEnabled", false); // Disable crash reporter lockPref("toolkit.crashreporter.enabled", false); Components.classes["@mozilla.org/toolkit/crash-reporter;1"].getService(Components.interfaces.nsICrashReporter).submitReports = false; Thanks in advance

All Replies (1)

more options

I haven't tried the file, but I noticed one typo: lockpref instead of lockPref lockpref("datareporting.healthreport.uploadEnabled", false);

Note that the mozilla.cfg file is run as JavaScript any any errors in the file will throw an exception.