Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Подробнее

Firefox isn't reading autofig.js on MacOS

  • 7 ответов
  • 1 имеет эту проблему
  • 1 просмотр
  • Последний ответ от 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);