搜尋 Mozilla 技術支援網站

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

了解更多

Restore session does not work when (all) history is set to be deleted on shutdown

  • 4 回覆
  • 1 有這個問題
  • 8 次檢視
  • 最近回覆由 zithro

more options

Hi,

the title says it all, here are the steps to reproduce:


1. Check "Restore previous session"

2. Select "Use custom settings for history"

3. Check "Clear history when FF closes" and click settings

4. Select all 7 items

5. Leave a tab open and restart FF

6. Starting with a blank session


Is it normal behavior ? It used to work.

Thanks

PS: how do line feeds work here ? I want a simple CRLF between the ordered list for instance.

Hi, the title says it all, here are the steps to reproduce: 1. Check "Restore previous session" 2. Select "Use custom settings for history" 3. Check "Clear history when FF closes" and click settings 4. Select all 7 items 5. Leave a tab open and restart FF 6. Starting with a blank session Is it normal behavior ? It used to work. Thanks PS: how do line feeds work here ? I want a simple CRLF between the ordered list for instance.

由 zithro 於 修改

被選擇的解決方法

WestEnd said

And what do you mean used to work? How did you document that?

cor-el said

If you use "Clear history when Firefox closes" to clear the browsing history then you can't restore tabs from the previous session because clearing history this way overrides sessionstore.

It simply worked, until v63-65 I think. I'm using FF since version ~1.5 by the way. To me, it is a bug as "places.sqlite" and sessionstore/"recovery.js" are different files and have completely different functions ! Plus the fact that the "Restore previous session" checkmark keeps checked BUT the session does not get restored, is really confusing to users, don't you think ?! If there's no bug filed in bugzilla, I need to create one. It's not the only bug I've seen in the GUI, or rather non matching values between checkmarks in the GUI and values in about:config. And that bothers me a lot as I'm using a mozilla.cfg file to set preferences.

You will at least have to disable clearing the history. You can always clear history manually yourself, but you can't do this automatically when you close Firefox if you want to use sessionstore to reopen tabs.

Yeah, I realized unchecking "Delete history and downloads" would work ... As said above, how counter-intuitive. In fact, and fortunately, I only have a few "always fresh" profiles, most of them keep history and session. In my mozilla.cfg file I used defaultPref("privacy.clearOnShutdown.history", false); instead of lockPref(...).

And thanks for the addon suggestion, but I use zillion of profiles so addons are a no-go ;)

從原來的回覆中察看解決方案 👍 0

所有回覆 (4)

more options

If you checked those options it will clear out regardless since that is a new Windows it consider that and clears out everything. And what do you mean used to work? How did you document that?

more options

If you use "Clear history when Firefox closes" to clear the browsing history then you can't restore tabs from the previous session because clearing history this way overrides sessionstore. You will at least have to disable clearing the history. You can always clear history manually yourself, but you can't do this automatically when you close Firefox if you want to use sessionstore to reopen tabs.

more options

Give this a try; Expire history by days Allows to expire history older than a fixed amount of days.

more options

選擇的解決方法

WestEnd said

And what do you mean used to work? How did you document that?

cor-el said

If you use "Clear history when Firefox closes" to clear the browsing history then you can't restore tabs from the previous session because clearing history this way overrides sessionstore.

It simply worked, until v63-65 I think. I'm using FF since version ~1.5 by the way. To me, it is a bug as "places.sqlite" and sessionstore/"recovery.js" are different files and have completely different functions ! Plus the fact that the "Restore previous session" checkmark keeps checked BUT the session does not get restored, is really confusing to users, don't you think ?! If there's no bug filed in bugzilla, I need to create one. It's not the only bug I've seen in the GUI, or rather non matching values between checkmarks in the GUI and values in about:config. And that bothers me a lot as I'm using a mozilla.cfg file to set preferences.

You will at least have to disable clearing the history. You can always clear history manually yourself, but you can't do this automatically when you close Firefox if you want to use sessionstore to reopen tabs.

Yeah, I realized unchecking "Delete history and downloads" would work ... As said above, how counter-intuitive. In fact, and fortunately, I only have a few "always fresh" profiles, most of them keep history and session. In my mozilla.cfg file I used defaultPref("privacy.clearOnShutdown.history", false); instead of lockPref(...).

And thanks for the addon suggestion, but I use zillion of profiles so addons are a no-go ;)

由 zithro 於 修改