Validate Mozilla.cfg File
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
Alle Antworten (1)
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.