When adding 'pref("privacy.sanitize.sanitizeOnShutdown", true);' to default prefs file 'privacy.clearOnShutdown.cookies' and 'privacy.cpd.cookies' become false
It's a duplicate of https://support.mozilla.org/ru/questions/970266. Created because of silence and impossibility to change a question's category. The situation descripted is a **problem** one.
The question is rather similar to http://support.mozilla.org/ru/questions/962042, but I **do not lock prefs**, so I don't use *mozilla.cfg*.
I'm constructing preconfigured Firefox 23.0.1 installation under Win 7 64-bit using browser\defaults\preferences\prefs.js file. Yes, I know that it should be called all-*companyname*.js, but it works in general in my way too.
As I have written in subj, when I add to prefs.js file 'pref("privacy.sanitize.sanitizeOnShutdown", true);' line, then lines 'pref("privacy.clearOnShutdown.cookies", true);' and 'pref("privacy.cpd.cookies", true);' stop working. If one run about:config immediately after installation, she would see that the latter two options are switched to false and marked **bold** (changed by user).
I had tested it heavily: if one comment out 'pref("privacy.sanitize.sanitizeOnShutdown", true);' line other two preferences work just fine. On the other hand if one add this cursed pref either upper or lower in code - no matter - it would turn both other preferences to *false*.
The question is where these strange side-effects are documented? And how can be made a preconfigured installation that possible both sanitize things and clear cookie data on closing?
Thanks in advance.
Wubrane rozwězanje
The problem was from Firefox 4+. Just add a new line:
user_pref("privacy.sanitize.migrateFx3Prefs", true);
into your prefs.js or set it to true in about:config. Then your Firefox will not automatically set "privacy.clearOnShutdown.cookies" and "privacy.cpd.cookies" to false.
Hope this will help.
Toś to wótegrono w konteksće cytaś 👍 3Wšykne wótegrona (2)
Wubrane rozwězanje
The problem was from Firefox 4+. Just add a new line:
user_pref("privacy.sanitize.migrateFx3Prefs", true);
into your prefs.js or set it to true in about:config. Then your Firefox will not automatically set "privacy.clearOnShutdown.cookies" and "privacy.cpd.cookies" to false.
Hope this will help.
Thank you very much, Cotez!
This has worked just fine for me.
Just one more note: when using pref("privacy.sanitize.migrateFx3Prefs", true); one should delete (or comment out) pref("privacy.cpd.cookies", true);. Otherwise the latter pref will become false on fresh install for some reason. While without that pref its value would be true.