Closed Bug 1973441 Opened 1 year ago Closed 27 days ago

Saved tab groups not actually saved if browser crashes

Categories

(Firefox :: Session Restore, defect, P2)

Firefox 139
Desktop
All
defect

Tracking

()

RESOLVED FIXED
158 Branch
Tracking Status
firefox-esr153 --- affected
firefox141 --- wontfix
firefox142 --- wontfix
firefox157 --- wontfix
firefox158 --- fixed

People

(Reporter: admin, Assigned: yeet90elite, Mentored)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [fidefe-tabgrps])

Attachments

(3 files, 1 obsolete file)

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

Steps to reproduce:

  1. Create a tab group
  2. Right click and select "save and close"
  3. The name group will appear in "List all tabs menu
  4. At this point if you close Firefox normally, the group will persist. But if Firefox crashes, it will be lost.

Actual results:

Tab groups are not really saving when you click "save and close". They are added to a list that is kept in memory and only saved when you close Firefox.

Expected results:

If a user wants something to be saved it's better not to loose it.

Summary: Saved tab groups not saved if browser crashes → Saved tab groups not actually saved if browser crashes

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

Component: Untriaged → Tabbed Browser

I was able to reproduce the issue on Win11x64 using Firefox build 141.0b1. I do not have the "Open previous windows and tabs", option check and after a crashparent the saved group did not appear after a session restore. With the option checked I did not reproduce the issue.
Marking issue as new.

Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Unspecified → All
Hardware: Unspecified → Desktop
Blocks: tab-groups
Component: Tabbed Browser → Session Restore
Whiteboard: [fidefe-tabgrps]

Generally speaking, all changes to a user's session state get staged in memory and then flushed to disk later, usually within 15 seconds. Recent user activity can be lost in the event of a crash.

I believe that saved groups act the same as other data (e.g. opening a new tab right before the browser crashing), but I will validate that.

Flags: needinfo?(sthompson)

It's normal to expect a 15 second delay, but I've had Firefox open for hours after saving tab groups, then random crash (probably out of memory), multiple times.

Severity: -- → S3
Priority: -- → P2
Duplicate of this bug: 2055879
Assignee: nobody → yeet90elite
Status: NEW → ASSIGNED
Attachment #9645372 - Attachment description: WIP: Bug 1973441 - Include saved tab groups on session restore. → Bug 1973441 - Include saved tab groups on session restore.
Mentor: sthompson
Flags: needinfo?(sthompson)
Status: ASSIGNED → RESOLVED
Closed: 27 days ago
Resolution: --- → FIXED
Target Milestone: --- → 158 Branch
Attachment #9646863 - Flags: approval-mozilla-beta?

firefox-beta Uplift Approval Request

  • User impact if declined/Reason for urgency: Medium. In the rare cases where users crash multiple times and get directed to about:sessionrestore to recover their session, a user's saved tab groups will not be retained. This patch fixes that. There is not a broad reach for this fix, but it prevents data loss for those users.
  • Code covered by automated testing?: no
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: no
  • Steps to reproduce for manual QE testing:
  • Risk associated with taking this patch: low
  • Explanation of risk level: There is no automated test for this scenario, but the patch is a very straightforward fix to include a missing property from the state that we pass into about:sessionrestore.
  • String changes made/needed?: No
  • Is Android affected?: no

Comment on attachment 9646863 [details]
Bug 1973441 - Include saved tab groups on session restore.

We are ending our beta cycle and have had this bug for a year, we ship a major release every two weeks, let's have it ride the 158 train, thanks.

Attachment #9646863 - Flags: approval-mozilla-beta? → approval-mozilla-beta-
Attachment #9646863 - Attachment is obsolete: true
QA Whiteboard: [qa-triage-done-c159/b158]
See Also: → 2083187
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: