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!

搜索 | 用户支持

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

详细了解

Help using about:config to delete form info on shutdown. Value set to true but forms still autocomplete, need to do for 1500 devices

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

more options

So I have deployed firefox 46 to 1500 devices, I have locked some of the preferences in mozillia.config. I don't want it to remember any form data, history etc. In the about:config I have set the privacy.clearonshutdown to true for cache , cookies, downloads, formdata and history but when firefox reopens the data is still there

What am I doing wrong. I need to make the changed via a config file so I can deploy to all machine

So I have deployed firefox 46 to 1500 devices, I have locked some of the preferences in mozillia.config. I don't want it to remember any form data, history etc. In the about:config I have set the privacy.clearonshutdown to true for cache , cookies, downloads, formdata and history but when firefox reopens the data is still there What am I doing wrong. I need to make the changed via a config file so I can deploy to all machine

所有回复 (10)

more options

For additional info I have added the below to my Mozilla config file and have checked it is all in the about config . However if I go into firefox options and look at the setting not only are they not changed but not locked either

//Ensure form data is removed and not cached lockPref("privacy.clearOnShutdown.formdata", true); lockPref("privacy.clearOnShutdown.cache", true); lockPref("privacy.clearOnShutdown.cookies", true); lockPref("privacy.clearOnShutdown.downloads", true); lockPref("privacy.clearOnShutdown.history", true);

more options

Did you create a local-settings.js file in the correct location?

A local-settings.js file needs to be placed in the "defaults/pref" folder where also the channel-prefs.js file is located to specify using mozilla.cfg.

pref("general.config.filename", "mozilla.cfg");
pref("general.config.obscure_value", 0);

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

The mozilla.cfg file needs to start with a comment line (//).

See Configuration:

See also:

more options

Yes Cor-el my local setting is set as above

as I mentioned above you can see that the config is being referenced as when I got into the about:config you can see the changes in italic. However if I go into the options, privacy settings and change firefox will : use custom settings for history all of those tick boxes are still ticked and can be changed

Im thinking maybe I might be locking down the wrong things ??

more options

Do you have privacy.sanitize.sanitizeOnShutdown = true? That's the "master switch" corresponding to the "Clear history when Firefox closes" checkbox on the Privacy panel of the Options page.

Do you also want to disable form and search autocomplete so that new data isn't stored? browser.formfill.enable = false

more options

many thanks I did find those switches

however I found a bit of a cheat

what i ultimately decided to do was force private browsing and lock it down.

that way it doesn't save any details. Also from a new user opening up firefox gives them a nice new clean feel every time it is opened

Thanks for the help though guys

more options

Are you leaving Tracking Protection enabled? It can break some site features, so that might be a support issue. See: What happened to Tracking Protection?.

由jscher2000 - Support Volunteer于修改

more options

So if I wanted private browsing on but tracking protection disabled what switches would I need ?

Ultimately what I want to achieve is a nice clean looking firefox everytime it is opened with no history and no sign of remember form or user history

This machine can be accessed by members of public although can only get to certain sites controlled by a pac file

more options

Sorry guys thought this was fixed but the privacy browsing stopped other functionality

I added the line

lockPref("privacy.sanitize.sanitizeOnShutdown ", true);

but this still seems to be keep the info in the username form field when you go to type it in again

more options

Smiler_cov said

I added the line

lockPref("privacy.sanitize.sanitizeOnShutdown ", true);

but this still seems to be keep the info in the username form field when you go to type it in again

Is it pre-filled in the form when you load the page, or does it appear in a drop-down below the field when you start typing? Form history generally appears in a drop-down. Data pre-filled in a field could remain from cache, or could be sent by the server (or filled by JavaScript) based on a cookie.

Or the Password Manager?

more options

Note that when you reopen tabs automatically then a lot of website related data is stored in sessionstore.js as part of the session data. This includes form data and cookies.