Trang web này sẽ có chức năng hạn chế trong khi chúng tôi trải qua bảo trì để cải thiện trải nghiệm của bạn. Nếu một bài viết không giải quyết được vấn đề của bạn và bạn muốn đặt câu hỏi, chúng tôi có cộng đồng hỗ trợ của chúng tôi đang chờ để giúp bạn tại @FirefoxSupport trên Twitter và /r/firefox trên Reddit.

Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

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

  • 4 trả lời
  • 2 gặp vấn đề này
  • 12 lượt xem
  • Trả lời mới nhất được viết bởi 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>

Được chỉnh sửa bởi cor-el vào

Tất cả các câu trả lời (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?