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

搜索 | 用户支持

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

详细了解

Can I tell firefox to clear browsing history automatically without also closing tabs?

more options

If I go to Settings -> Privacy and Security -> History -> Settings (within the "History" setting) I am able to choose from multiple check boxes, two of them being "Browsing and download history" and "Form and search history". I want it to clear the actual browsing history upon closing the browser, but if I check the first box It will not only do what I want, it will also close all tabs I have open, even if I have the setting to keep tabs open enabled.

Can this be done or will I have to live with clearing browsing history manually?

If I go to Settings -> Privacy and Security -> History -> Settings (within the "History" setting) I am able to choose from multiple check boxes, two of them being "Browsing and download history" and "Form and search history". I want it to clear the actual browsing history upon closing the browser, but if I check the first box It will not only do what I want, it will also close all tabs I have open, even if I have the setting to keep tabs open enabled. Can this be done or will I have to live with clearing browsing history manually?

由user66223845908837224563951704611771243291于修改

被采纳的解决方案

As far as I know, there is no option/exception.

If you need to keep clearing history at shutdown, you could consider using an add-on to keep/restore tabs. Note that add-ons will store the current URL and won't keep all the back/forward history of those tabs.

You'll want one that saves tabs automatically and doesn't require you to remember to save them before quitting. These are the ones I found a couple years ago, and there might be new ones by now:

Use database storage:

Use bookmark storage:

Bookmark storage is more robust in that Firefox backs it up regularly. However, having the extra data show up when you are searching your bookmarks may be annoying.

定位到答案原位置 👍 0

所有回复 (6)

more options

Currently, "Browsing and download history" always includes session history. In fact, if you clear history manually, it also clears session history, but then once you resume browsing for a little bit, Firefox starts recording it again, so that may be why you didn't notice that clearing manually also wipes out your tab data.

I posted a new Idea for this on Mozilla Connect. It is awaiting moderation, but assuming I didn't break any rules, it should eventually appear at this link:

https://connect.mozilla.org/t5/ideas/make-clear-history-and-restore-tabs-work-together/idi-p/16016

more options

I cleared my browsing history manually via the three lines in the top right corner -> History -> clear history (or whatever it's called in English) -> "all history" and first box checked which clears browsing history yesterday and made sure nothing was visible in the history list and nothing was "recorded" before closing Firefox and today all my tabs are still there. So that works the way I want to, but it's when I use the setting under privacy settings to automatically clear history when I close the browser where it goes to the extreme and also closes all tabs.

I'll post a pic to show the setting I mean just in case there's any confusion

Edit: Sorry for downvoting you, I tried to figure out how to properly answer your response just in case you won't see this

由user66223845908837224563951704611771243291于修改

more options

That is interesting. I found a bug on file (1753947) about Clear Recent History:

  • When you use Clear Recent History to remove Browsing & Download History, the current session history file (recovery.jsonlz4) is NOT deleted, but all the other session history files ARE deleted (recovery.baklz4, previous.jsonlz4, and files created during upgrades).
  • If you immediately repeat the action, then the current session history file IS deleted. Please don't test that if you want to keep your tabs.

Either way, the shutdown behavior is a separate situation.

more options

So the answer to my original question is basically that I can't make it stop closing all my tabs unless the suggestion you posted on Mozilla Connect gets approved?

more options

选择的解决方案

As far as I know, there is no option/exception.

If you need to keep clearing history at shutdown, you could consider using an add-on to keep/restore tabs. Note that add-ons will store the current URL and won't keep all the back/forward history of those tabs.

You'll want one that saves tabs automatically and doesn't require you to remember to save them before quitting. These are the ones I found a couple years ago, and there might be new ones by now:

Use database storage:

Use bookmark storage:

Bookmark storage is more robust in that Firefox backs it up regularly. However, having the extra data show up when you are searching your bookmarks may be annoying.

more options

Ok, thank you for the help :)