為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

restarting firefox with with clear browser history on close enabled also clears open tabs

  • 13 回覆
  • 2 有這個問題
  • 2 次檢視
  • 最近回覆由 cor-el

more options

I want to have firefox clear my browsing history on close but remember what tabs i have open, any way to accomplish this? It was like this around v3.5 and before i think and since then ive used session manager but sometimes on crashes or restarts session manager wont remember my past session worth a few days of changed tabs. Today i restarted firefox and my tabs are reset to 3 days ago. If anyone has a solution it would be much appreciated

I want to have firefox clear my browsing history on close but remember what tabs i have open, any way to accomplish this? It was like this around v3.5 and before i think and since then ive used session manager but sometimes on crashes or restarts session manager wont remember my past session worth a few days of changed tabs. Today i restarted firefox and my tabs are reset to 3 days ago. If anyone has a solution it would be much appreciated

所有回覆 (13)

more options

Open tabs are considered as history and if you use Clear Recent History to clear the history when you close Firefox then the open tabs won't reappear on the next start.
You will have to un-check that item and clear the history manually to make this work.

more options

i realize that that would work but then my history isnt cleared, im looking for a workaround. There really should be an option to not clear tabs. Also if you just clear history you dont lose tabs so why should it be different if your starting or restarting, it was like this before v3.5 afterall

由 mayfair2005 於 修改

more options

You would have to set the pages as home pages and open the home pages on startup or open them by middle-clicking a bookmarks folder with those sites bookmarked.

more options

yeah thats not gona work, i have more 200 tabs in different groups at any given time and they are constantly changing

more options

Then you will just have to restrain from clearing the browsing history automatically and do this yourself manually.

  • Firefox > History > Clear Recent History
  • Tools > Clear Recent History
more options

well i was partially able to fix the problem with session manager with restarting now saving a session, theres an option in session manager :) but that doesnt fix it losing days worth of changes to my tabs. this should so be an option. "clear browsing history but keep tabs"

more options

There is no need to make another option as you suggested because there is already one in General > When Firefox starts that should be respected. In other words, if When Firefox starts is set to Show my windows and tabs from last time and Privacy > Settings... > Browser History is checked, then after restarting Firefox all tabs should be preserved.

Because of that, this should be marked as a bug.

more options

If you want your history cleared and reopen the tabs then you have to clear the history yourself manually before closing Firefox.
There are a lot of background actions connected to clearing history items when you close Firefox.
Clearing the cache disables the disk cache altogether (see about:cache) and clearing the history will prevent tabs from getting reopened.
Cookies from tabs that are reopened are stored as part of the session data by default and are not removed.

more options

But why there cannot be a simple way to automatically clear the history while keeping the tabs open (other than manually doing that or by automating a third-party software like BleachBit)? Exactly, what is the difference when Privacy > Settings... > Browser History is checked and Firefox is doing that automatically, and when I do that manually through Firefox > History > Clear Recent History...?

由 myself600 於 修改

more options

Firefox doesn't care if you clear the history manually, but if you set Firefox to clear personal data (history) when you close Firefox then this includes session data and that prevents tabs from getting saved and restored on the next start. That is how the Firefox developers see and have coded this and there is nothing to do about this.

more options

I just sent a feedback at Firefox Input. Maybe we will be lucky and they create an option for this.

more options

Good idea, its so basic and really seems like something that should be included (this is how it was before 3.5) and i cant think of a reason why not to include it. That aside session manager does a fairly good job of getting around this issue for me.

more options

I don't know which regular expressions Firefox is using to validate such a text link, but it is very difficult to include every possible text link variation if they didn't use a very basic URL check.