Firefox isn't reading autofig.js on MacOS
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.
Keazen oplossing
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.
Dit antwurd yn kontekst lêze 👍 0Alle antwurden (7)
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
I do have those files in correct path, but still doesn't read them.
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”);
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);
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);
Keazen oplossing
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.
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);