Closed Bug 1712977 Opened 4 years ago Closed 4 years ago

Firefox previous session is destroyed on close

Categories

(Firefox :: Session Restore, defect)

Firefox 88
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: brendan.bormann, Unassigned)

Details

Attachments

(1 file)

Attached image bug.gif

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:88.0) Gecko/20100101 Firefox/88.0

Steps to reproduce:

  1. Start firefox and make sure to set "Startup: restore previous session"
  2. Open a few tabs so you can recognize the session
  3. Close firefox and reopen, now you will see a new session with none of the old tabs

Actual results:

My session disappears when I close and reopen firefox

Expected results:

My session should resume when I re-open firefox.

It currently works this way when firefox is open and I shutdown my computer. Then the next day I'll start my computer and open firefox and it will resume my last session.

The Bugbug bot thinks this bug should belong to the 'Firefox::Session Restore' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Session Restore

Hi,

I wasn't able to reproduce your issue on Firefox 88.0.1 or Firefox Nightly 90.0a1

Could you check if it occurs to you on a new profile? (you will not lose your old profile) Here is a link that can help you with that:
https://support.mozilla.org/en-US/kb/profile-manager-create-remove-switch-firefox-profiles#w_start-the-profile-manager-when-firefox-is-closed

Thanks!

Flags: needinfo?(brendan.bormann)

I'm having the same issue. I created a new profile, and the issue still happens. I'm on Firefox 89.0.

So, I found out what causes the issue.

How to reproduce
I'm using MacOS Big Sur 11.4.
If I close the Firefox window by pressing the window's red (x) button at the top left corner, like a normal person would do, the session is lost. I'm convinced Firefox simply closes all the tabs in this case as if I had Cmd-W every single tab.

How to prevent losing the session
However, if I quit Firefox (Cmd-Q, or right-click Firefox in the dock and Quit), then the session is saved and when I reopen Firefox all my tabs are there.

I still have issues with a brand new profile.

Sounds like Rafael is in the exact same boat as I am.

Flags: needinfo?(brendan.bormann)
Status: UNCONFIRMED → NEW
Ever confirmed: true

I actually figured out why this happens. I had "erase history when FireFox is closed" checked, which destroys your session I guess. The issue no longer occurring after disabling that.

It would be nice to see another checkbox that says:
[ ] - Destroy session when FireFox closes

Thanks everyone :-)

Since it was a preference that erased the history I will close this issue as invalid.

Thank you for the update!

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: