Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

disabling history clearonshutdown for all users am i missing something ?

  • 3 replies
  • 1 has this problem
  • 25 views
  • Last reply by 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 ?
Attached screenshots

Modified by Powderedloox

All Replies (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: