본 사이트는 여러분의 사용자 경험을 개선하기 위해 유지 보수를 진행하는 동안 기능이 제한됩니다. 도움말로 문제가 해결되지 않고 질문을 하고 싶다면 Twitter의 @FirefoxSupport 및 Reddit의 /r/firefox 채널을 활용하세요.

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.