为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

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

详细了解

clear all history with user_pref

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

more options

Hello,

At work we use Firefox with an different profile configured for an internal need. there is this user.js file:

user_pref("startup.homepage_override_url", "http://10.0.1.26:8888"); user_pref("startup.homepage_welcome_url", "http://10.0.1.26:8888"); user_pref("javascript.enabled", true); user_pref("app.update.enabled", false); user_pref("browser.startup.homepage", "http://10.0.1.26:8888"); user_pref("accessibility.browsewithcaret", false); user_pref("browser.cache.disk.enable", false); user_pref("browser.popups.showPopupBlocker", false); user_pref("browser.cache.memory.enable", false); user_pref("browser.shell.checkDefaultBrowser", false); user_pref("browser.backspace_action", 2); user_pref("privacy.popups.disable_from_plugins", 0); user_pref("privacy.sanitize.sanitizeOnShutdown", true); user_pref("update_notifications.enabled", false); user_pref("browser.tabs.showSingleWindowModePrefs", true); user_pref("accessibility.browsewithcaret_shortcut.enabled", false); user_pref("plugins.hide_infobar_for_outdated_plugin", true); user_pref("extensions.blocklist.enabled", false); user_pref("browser.newtabpage.enabled", false); user_pref("browser.newtab.url", "http://10.0.1.26:8888"); user_pref("browser.tabs.autoHide", false); user_pref("zoom.minPercent", 100); user_pref("zoom.maxPercent", 100);

In some cases, (some) users are asked to save the password, and if they save it they don't need to re-fill the field despite there is:

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

in user.js

does someone have an idea? And is there any other way to avoid password saving or enforce clearing passwords.

Thanks

Sam

Hello, At work we use Firefox with an different profile configured for an internal need. there is this user.js file: user_pref("startup.homepage_override_url", "http://10.0.1.26:8888"); user_pref("startup.homepage_welcome_url", "http://10.0.1.26:8888"); user_pref("javascript.enabled", true); user_pref("app.update.enabled", false); user_pref("browser.startup.homepage", "http://10.0.1.26:8888"); user_pref("accessibility.browsewithcaret", false); user_pref("browser.cache.disk.enable", false); user_pref("browser.popups.showPopupBlocker", false); user_pref("browser.cache.memory.enable", false); user_pref("browser.shell.checkDefaultBrowser", false); user_pref("browser.backspace_action", 2); user_pref("privacy.popups.disable_from_plugins", 0); user_pref("privacy.sanitize.sanitizeOnShutdown", true); user_pref("update_notifications.enabled", false); user_pref("browser.tabs.showSingleWindowModePrefs", true); user_pref("accessibility.browsewithcaret_shortcut.enabled", false); user_pref("plugins.hide_infobar_for_outdated_plugin", true); user_pref("extensions.blocklist.enabled", false); user_pref("browser.newtabpage.enabled", false); user_pref("browser.newtab.url", "http://10.0.1.26:8888"); user_pref("browser.tabs.autoHide", false); user_pref("zoom.minPercent", 100); user_pref("zoom.maxPercent", 100); In some cases, (some) users are asked to save the password, and if they save it they don't need to re-fill the field despite there is: user_pref("privacy.sanitize.sanitizeOnShutdown", true); in user.js does someone have an idea? And is there any other way to avoid password saving or enforce clearing passwords. Thanks Sam

由NiteSupport于修改

所有回复 (4)

more options

Hello,

use also the next and check it again :

  • user_pref("privacy.item.passwords", true);


thank you

more options

Why would you want to disable the memory cache?

user_pref("browser.cache.memory.enable", false);

You would have to set this pref ot remove stored passwords:

  • user_pref('privacy.clearOnShutdown.passwords", true);

Note that details like websites remembering you (log you in automatically) are stored in a cookie. So you would have to clear cookies or let cookies expire when you close Firefox to prevent this from happening.

由cor-el于修改

more options

Hello,

Thanks a lot, it works fine.

@cor-el, I don't know why the cache memory is disable, the "app" why configured for us by an external company for different purpose, both internet and intranet. So i don't want to touch this. The password in all cases doesn't have to be saved.

Thanks Sam

more options

It would make more sense to disable the disk cache than the memory cache if you compare that with clearing possible stored passwords (prevent Firefox from storing personal data) unless you want to force Firefox to store all data in the disk cache by disabling the memory cache.

Note that Firefox will disable the disk cache if you use "Clear history when Firefox closes" to clear the Cache (see the about:cache page)