Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

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

  • 4 replies
  • 2 have this problem
  • 17 views
  • Last reply by 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>

Modified by cor-el

All Replies (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?