Този сайт ще има ограничена функционалност, докато се извършва тече неговата поддръжка. Ако дадена статия не може реши проблема ви и искате да зададете въпрос, нашата общност е готова да ви помогне на @firefox в Twitter и /r/firefox в Reddit.

Търсене в помощните статии

Избягвайте измамите при поддръжката. Никога няма да ви помолим да се обадите или изпратите SMS на телефонен номер или да споделите лична информация. Моля, докладвайте подозрителна активност на "Докладване за злоупотреба".

Научете повече

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?