Open Bug 1928876 Opened 1 year ago Updated 1 year ago

Firefox restores outdated tabs from hours ago instead of the last session’s tabs upon restart

Categories

(Firefox :: Session Restore, defect, P3)

Firefox 132
defect

Tracking

()

UNCONFIRMED

People

(Reporter: vitaliy.wpf, Unassigned)

References

Details

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

Steps to reproduce:

  1. Used Firefox with multiple tabs open over several days, including putting Windows into hibernation.
  2. Closed all Firefox windows.
  3. Restarted Firefox.

Actual results:

Upon restart, Firefox restores tabs from a previous session (several hours prior) instead of the tabs that were open at the time of closing. Older, previously closed tabs appear, while more recently open tabs are missing.

Expected results:

Firefox should restore the exact tabs that were open at the time of closing the browser, not from an earlier session.

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

Component: Untriaged → Session Restore

Hello, thank you for the bug report!
Unfortunately I could not reproduce your issue. Would you be so kind as to answer a few questions so we can investigate this further?
Check the option in preferences "Open previous windows and tabs".
Does this issue happen with a new profile? Here is a link on how to create one: https://support.mozilla.org/en-US/kb/profile-manager-create-remove-switch-firefox-profiles
Does this issue happen with latest nightly? Here is a link from where you can download it: https://www.mozilla.org/en-US/firefox/channel/desktop/.
If it is possible please attach a screencast with the issue.

Flags: needinfo?(vitaliy.wpf)

"Open previous windows and tabs" - of course it's selected, otherwise no session would be restored.
I am not planning to create a new profile or install firefox nightly.
I'm just informing you that this issue exists and occurs repeatedly, so you know that it could lead to a negative experience for many users.

Flags: needinfo?(vitaliy.wpf)

The severity field is not set for this bug.
:sfoster, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(sfoster)

(In reply to Vitaliy from comment #0)

Actual results:

Upon restart, Firefox restores tabs from a previous session (several hours prior) instead of the tabs that were open at the time of closing. Older, previously closed tabs appear, while more recently open tabs are missing.

I'm speculating that we weren't able to save the session state before restart - for some reason - so at the next startup Firefox fell back to using the backup/previous session state. Which is slightly better than not restoring at all, but without explanation is confusing and unexpected - and obviously represents the loss of some of that session data.

The fact that the previous session file exists means we can rule out some kind of inability to write data to that folder. The windows hibernation detail is interesting and might be something we can build a test case around.

I'm not confident we'll be able to reproduce this, but I want to keep it on file as its yet another manifestation of problems that bug 1903112 would help elucidate.

Severity: -- → S3
Depends on: 1903112
Flags: needinfo?(sfoster)
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.