搜索 | 用户支持

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

详细了解

disabling history clearonshutdown for all users am i missing something ?

  • 3 个回答
  • 1 人有此问题
  • 3 次查看
  • 最后回复者为 cor-el

more options

Hi
I've some hosts computers using active directory and multiple users loginng on them. For some reasons I need to force disabling history for all users.
I'm using Firefox 41.0.1
According to http://kb.mozillazine.org/Locking_preferences
I've created a local-settings.js file sored in c:\Program Files\Mozilla Firefox\defaults\pref\ Containing 2lines of text:
pref("general.config.obscure_value", 0);
pref("general.config.filename", "mozilla.cfg");
Next i've created mozilla.cfg file stored in instalation directory c:\Program Files\Mozilla Firefox\
Containing :
//
defaultPref("privacy.clearOnShutdown.cache", true); lockPref("privacy.clearOnShutdown.cookies", true); defaultPref("privacy.clearOnShutdown.downloads", true); defaultPref("privacy.clearOnShutdown.formdata", true); defaultPref("privacy.clearOnShutdown.history", true); defaultPref("privacy.clearOnShutdown.offlineApps", true); lockPref("privacy.clearOnShutdown.passwords", true); lockPref("privacy.clearOnShutdown.sessions", true); defaultPref("privacy.clearOnShutdown.siteSettings", true); defaultPref("privacy.clearOnShutdown.openWindows", true);
When i go to about:config everything seems to be fine, all options are set as in the mozilla.cfg file (screenshot attached). But history isn't cleared on shutdown.
Simply check is to go to some web page and close cookies notification appears. After firefox shutdown, restart when i go to the same web page there's no cookies notification.
Am i missing something ?
Or maybe theres better way to block keeping the history for all users ?

Hi<br> I've some hosts computers using active directory and multiple users loginng on them. For some reasons I need to force disabling history for all users. <br> I'm using Firefox 41.0.1<br> According to http://kb.mozillazine.org/Locking_preferences <br> I've created a local-settings.js file sored in c:\Program Files\Mozilla Firefox\defaults\pref\ Containing 2lines of text:<br> pref("general.config.obscure_value", 0);<br> pref("general.config.filename", "mozilla.cfg");<br> Next i've created mozilla.cfg file stored in instalation directory c:\Program Files\Mozilla Firefox\<br> Containing :<br> // <br> defaultPref("privacy.clearOnShutdown.cache", true); lockPref("privacy.clearOnShutdown.cookies", true); defaultPref("privacy.clearOnShutdown.downloads", true); defaultPref("privacy.clearOnShutdown.formdata", true); defaultPref("privacy.clearOnShutdown.history", true); defaultPref("privacy.clearOnShutdown.offlineApps", true); lockPref("privacy.clearOnShutdown.passwords", true); lockPref("privacy.clearOnShutdown.sessions", true); defaultPref("privacy.clearOnShutdown.siteSettings", true); defaultPref("privacy.clearOnShutdown.openWindows", true); <br> When i go to about:config everything seems to be fine, all options are set as in the mozilla.cfg file (screenshot attached). But history isn't cleared on shutdown.<br> Simply check is to go to some web page and close cookies notification appears. After firefox shutdown, restart when i go to the same web page there's no cookies notification.<br> Am i missing something ?<br> Or maybe theres better way to block keeping the history for all users ?
已附加屏幕截图

由Powderedloox于修改

所有回复 (3)

more options

What is privacy.sanitize.sanitizeOnShutdown ?

Did you check if the items still show in the History Manager and the Cookie Manager?

There is no history kept and no data is stored in Private Browsing mode and users can't save passwords as well.

more options

privacy.sanitize.sanitizeOnShutdown false

change to True
causes clearing history after every second restart (fair enough for me)

Big Up cor-el

as for your other questions, before change to "True"
Yes - items were shown in History Manager and Cookie Manager.
&
any advice how to switch Private Browsing for all users ?

more options

You can use this:

  • lockPref("browser.privatebrowsing.autostart", true);

These functions can be used in the mozilla.cfg file:

defaultPref();	// set new default value
pref();		// set pref, allow changes in current session
lockPref();	// lock pref, disallow changes

See also Configuration: