搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

disabling history clearonshutdown for all users am i missing something ?

  • 3 回覆
  • 1 有這個問題
  • 25 次檢視
  • 最近回覆由 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: