This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

ค้นหาฝ่ายสนับสนุน

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.

เรียนรู้เพิ่มเติม

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.