Windows 10 reached EOS (end of support) on October 14, 2025. For more information, see this article.

搜索 | 用户支持

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

详细了解

When adding 'pref("privacy.sanitize.sanitizeOnShutdown", true);' to default prefs file 'privacy.clearOnShutdown.cookies' and 'privacy.cpd.cookies' become false

  • 2 个回答
  • 9 人有此问题
  • 62 次查看
  • 最后回复者为 WhiteWiz

更多选项

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.

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.

被采纳的解决方案

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.

定位到答案原位置 👍 3

所有回复 (2)

更多选项

选择的解决方案

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.