搜索 | 用户支持

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

详细了解

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

  • 4 个回答
  • 1 人有此问题
  • 19 次查看
  • 最后回复者为 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于修改