We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

Този сайт ще има ограничена функционалност, докато се извършва тече неговата поддръжка. Ако дадена статия не може реши проблема ви и искате да зададете въпрос, нашата общност е готова да ви помогне на @firefox в Twitter и /r/firefox в Reddit.

Търсене в помощните статии

Избягвайте измамите при поддръжката. Никога няма да ви помолим да се обадите или изпратите SMS на телефонен номер или да споделите лична информация. Моля, докладвайте подозрителна активност на "Докладване за злоупотреба".

Научете повече

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: