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

搜索 | 用户支持

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

详细了解

Firefox isn't reading autofig.js on MacOS

  • 7 个回答
  • 1 人有此问题
  • 23 次查看
  • 最后回复者为 cdykstra

more options

autofig.js: // Firefox settings pref(“general.config.filename”, ”firefox.cfg”); pref("general.config.obscure_value", 0);

================================

firefox.cfg: // Put in /Applications/Firefox.app/Contents/Resources/defaults/pref // V-15775 lockPref("signon.prefillForms", false);

================================

After startup, signon.prefillForms is true, and it appears it's not being read.

autofig.js: // Firefox settings pref(“general.config.filename”, ”firefox.cfg”); pref("general.config.obscure_value", 0); ============================================ firefox.cfg: // Put in /Applications/Firefox.app/Contents/Resources/defaults/pref // V-15775 lockPref("signon.prefillForms", false); ============================================ After startup, signon.prefillForms is true, and it appears it's not being read.

被采纳的解决方案

All quotes need to be normal quotes, so you need to change them all.

autoconfig.js: // Firefox settings pref("general.config.filename", "firefox.cfg"); pref("general.config.obscure_value", 0);

Same here where you also posted wrong quotes: // NetOps Firefox STIG fixes pref("general.config.filename", "firefox.cfg"); pref("general.config.obscure_value", 0);

The TLS prefs have Integer value and thus shouldn't have enclosing quotes.

lockPref("security.tls.version.min", 2);
lockPref("security.tls.version.max", 3);

I don't think this pref still exists in current Firefox releases and also has a '?' instead of quotes. // V-15772 lockPref(?plugin.disable_full_page_plugin_for_types?

The autoconfig.cfg file is run as JavaScript and any error in the file throws an exception and aborts the execution. So maybe check the Browser Console for error messages.

定位到答案原位置 👍 0

所有回复 (7)

more options

Make sure the files are in the correct location. The autoconfig.js file needs to be in:

  • /Applications/Firefox.app/Contents/Resources/defaults/pref

The autoconfig.cfg file needs to be in:

  • /Applications/Firefox.app/Contents/Resources
more options

I do have those files in correct path, but still doesn't read them.

more options

I just noticed that you have the wrong quotes (“ and not ") in the line that sets the config file.

  • pref(“general.config.filename”, ”firefox.cfg”);
more options

Thank you for the suggestions, but it still doesn't seem to read the config file:

// NetOps Firefox STIG fixes pref(“general.config.filename”, “firefox.cfg”); pref(“general.config.obscure_value”, 0);

more options

It reads autoconfig.js file, but not the firefox.cfg:

// Put in /Applications/Firefox.app/Contents/Resources

// V-15768 lockPref("security.default_personal_cert", "Ask Every Time");

// V-15771 lockPref("network.protocol-handler.external.shell", false);

// V-15772 lockPref(?plugin.disable_full_page_plugin_for_types?, ?application/pdf,application/fdf,application/xfdf,application/lsl,application/lso,application/lss,application/iqy,application/rqy,application/xlk,application/xls,application/xlt,application/pot,application/pps,application/ppt,application/dos,application/dot,application/wks,application/bat,application/ps,application/eps,application/wch,application/wcm,application/wb1,application/wb3,application/rtf,application/doc,application/mdb,application/mde,application/ad,application/,application/adp?);

// V-15774 lockPref("browser.formfill.enable", false);

// V-15775 lockPref("signon.prefillForms", false);

// V-15776 lockPref("signon.rememberSignons", false);

// V-15777 lockPref("places.history.enabled", true);

// V-15778 lockPref("dom.disable_window_open_feature.status", true);

// V-15779 lockPref("dom.disable_window_move_resize", true);

// V-15983 lockPref("security.enable_tls", true); lockPref("security.tls.version.min", "2"); lockPref("security.tls.version.max", "3");

// V-15985 lockPref("dom.disable_window_flip", true);

// V-15986 lockPref("dom.event.contextmenu.enabled", false);

// V-15987 lockPref("dom.disable_window_status_change", true);

// V-15988 lockPref("dom.disable_window_open_feature.status", true);

// V-15989 lockPref("security.warn_leaving_secure", true);

// V-19741 lockPref("app.update.enable", true);

// V-19742 lockPref("extensions.update.enabled", false);

// V-19744 lockPref("browser.search.update", false);

// V-64891 lockPref("xpinstall.enabled", false);

// V-79053 lockPref("datareporting.policy.dataSubmissionEnabled", false);

more options

选择的解决方案

All quotes need to be normal quotes, so you need to change them all.

autoconfig.js: // Firefox settings pref("general.config.filename", "firefox.cfg"); pref("general.config.obscure_value", 0);

Same here where you also posted wrong quotes: // NetOps Firefox STIG fixes pref("general.config.filename", "firefox.cfg"); pref("general.config.obscure_value", 0);

The TLS prefs have Integer value and thus shouldn't have enclosing quotes.

lockPref("security.tls.version.min", 2);
lockPref("security.tls.version.max", 3);

I don't think this pref still exists in current Firefox releases and also has a '?' instead of quotes. // V-15772 lockPref(?plugin.disable_full_page_plugin_for_types?

The autoconfig.cfg file is run as JavaScript and any error in the file throws an exception and aborts the execution. So maybe check the Browser Console for error messages.

more options

Thank you so much for your help! It's working now. Once I removed //V-15772, and quotes around integer value it worked.

lockPref("security.tls.version.min", 2); lockPref("security.tls.version.max", 3);