Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Cerca nel supporto

Attenzione alle mail truffa. Mozilla non chiederà mai di chiamare o mandare messaggi a un numero di telefono o di inviare dati personali. Segnalare qualsiasi attività sospetta utilizzando l'opzione “Segnala abuso”.

Learn More

Questa discussione è archiviata. Inserire una nuova richiesta se occorre aiuto.

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

  • 4 risposte
  • 2 hanno questo problema
  • 12 visualizzazioni
  • Ultima risposta di 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>

Modificato da cor-el il

Tutte le risposte (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?