为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Getting "Failed to read the configuration file." using mozilla.cfg file

  • 4 个回答
  • 2 人有此问题
  • 12 次查看
  • 最后回复者为 buckZor

more options

Can someone look at the mozilla.cfg file I am attempting to use with ESR deployment at our company? I can't see the problem. Edit: pasting without the comments.

lockPref("app.update.enabled", true);
lockPref("app.update.auto", true);
lockPref("app.update.channel", "esr");
lockPref("app.update.service.enabled", true);
lockPref("app.update.BITS.enabled", true);
clearPref("extensions.lastAppVersion"); 
pref("browser.rights.3.shown", true);
pref("browser.startup.homepage_override.mstone","ignore");
pref("browser.usedOnWindows10", true);
lockPref("browser.startup.homepage","https://sharepoint.com");
lockPref("pdfjs.disabled", true);
lockPref("shumway.disabled", true);
pref("plugins.notifyMissingFlash", false);
lockPref("plugins.hide_infobar_for_outdated_plugin", true);
clearPref("plugins.update.url");
lockPref("datareporting.healthreport.service.enabled", false);
lockPref("datareporting.policy.dataSubmissionEnabled", false);
lockPref("toolkit.crashreporter.enabled", false);
Components.classes["@mozilla.org/toolkit/crash-reporter;1"].getService(Components.interfaces.nsICrashReporter).submitReports = false; 
lockPref("browser.shell.checkDefaultBrowser", false);
lockPref("browser.history_expire_days", 0);
lockPref("browser.history_expire_days.mirror", 0);
lockPref("browser.formfill.enable", false);
lockPref("browser.download.manager.retention", 0);
lockPref("network.cookie.cookieBehavior", 0);
lockPref("network.cookie.lifetimePolicy", 2);
lockPref("signon.rememberSignons", false);
lockPref("pref.privacy.disable_button.view_passwords", true);
lockPref("config.lockdown.disable_themes", true);
lockPref("security.enable_java", true);
Pref("extensions.autoDisableScopes", 15);
Can someone look at the mozilla.cfg file I am attempting to use with ESR deployment at our company? I can't see the problem. Edit: pasting without the comments. <pre><nowiki>lockPref("app.update.enabled", true); lockPref("app.update.auto", true); lockPref("app.update.channel", "esr"); lockPref("app.update.service.enabled", true); lockPref("app.update.BITS.enabled", true); clearPref("extensions.lastAppVersion"); pref("browser.rights.3.shown", true); pref("browser.startup.homepage_override.mstone","ignore"); pref("browser.usedOnWindows10", true); lockPref("browser.startup.homepage","https://sharepoint.com"); lockPref("pdfjs.disabled", true); lockPref("shumway.disabled", true); pref("plugins.notifyMissingFlash", false); lockPref("plugins.hide_infobar_for_outdated_plugin", true); clearPref("plugins.update.url"); lockPref("datareporting.healthreport.service.enabled", false); lockPref("datareporting.policy.dataSubmissionEnabled", false); lockPref("toolkit.crashreporter.enabled", false); Components.classes["@mozilla.org/toolkit/crash-reporter;1"].getService(Components.interfaces.nsICrashReporter).submitReports = false; lockPref("browser.shell.checkDefaultBrowser", false); lockPref("browser.history_expire_days", 0); lockPref("browser.history_expire_days.mirror", 0); lockPref("browser.formfill.enable", false); lockPref("browser.download.manager.retention", 0); lockPref("network.cookie.cookieBehavior", 0); lockPref("network.cookie.lifetimePolicy", 2); lockPref("signon.rememberSignons", false); lockPref("pref.privacy.disable_button.view_passwords", true); lockPref("config.lockdown.disable_themes", true); lockPref("security.enable_java", true); Pref("extensions.autoDisableScopes", 15);</nowiki></pre>

由cor-el于修改

所有回复 (4)

more options

I can't attach the actual file, formatting result in this post is horrid. I don't know how to post this properly.

more options

Note there there are quite a few prefs in the file that are obsolete for a very long time (e.g.security.enable_java (52+) browser.history_expire_days).

You can check that without the autoconfig file and search the about:config page.

I haven't tested the file, but a quick look points at the last line that has Pref() capitalized, i.e. should be pref().

  • pref("extensions.autoDisableScopes", 15);
more options

Thanks cor-el, Im not understanding the link, but you are saying check for the presence of all of those values in about:config with an installed vanilla esr install?

more options

and GOOD CATCH that capital P was causing the run-time error. But now you have me wondering about the "obsolete" settings. I got this file from an SCCM posting recomending how to deploy Firefox.. how do I update the obsolete settings?