搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Validate Mozilla.cfg File

  • 1 回覆
  • 2 有這個問題
  • 1 次檢視
  • 最近回覆由 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

所有回覆 (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.