Closed Bug 1933485 Opened 1 year ago Closed 11 months ago

Deleted tab groups sometimes do not appear in the history menus

Categories

(Firefox :: Session Restore, task, P1)

task
Points:
3

Tracking

()

RESOLVED FIXED
135 Branch
Tracking Status
firefox135 --- fixed

People

(Reporter: jswinarton, Assigned: jswinarton)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fidefe-tabgrps-sessionstore])

Attachments

(1 file)

I have noticed that since the landing of bug1927774, deleted tab groups do not always appear in the history context menus.

I am not sure exactly what's causing this but I suspect there may be a race condition related to the event that passes the group data to session store. It could be that by the time the event makes it to session restore, the tabs have already been removed, and thus session restore interprets this as an empty group and ignores it.

Blocks: 1907100
See Also: → 1927774
Assignee: nobody → jswinarton

:jswinarton I saw this in my manual testing. I saw this most frequently if I created a new tab group and then deleted it very soon after creation. I do not think I saw this issue happen when deleting a tab group that had been around for a minute or more.

The onTabGroupRemoveRequested handler operates on the state of immediate state of the session.

A lot of the session state operations occur after a delay; it may be that we need to do something like SessionStoreInternal.onMoveToNewWindow where we flush the state first.

Attachment #9441468 - Attachment description: WIP: Bug 1933485: Ensure tab groups always appear in history context menus → Bug 1933485: Ensure tab groups always appear in history context menus r?dao,dwalker,sthompson
Points: --- → 2
Priority: -- → P1
Whiteboard: [fidefe-tabgrps-sessionstore]
Summary: Deleted tab groups sometimes do not appear in the history context menus → Deleted tab groups sometimes do not appear in the history menus
Attachment #9441468 - Attachment description: Bug 1933485: Ensure tab groups always appear in history context menus r?dao,dwalker,sthompson → Bug 1933485: Ensure tab groups always appear in history menus r?dao,dwalker,sthompson
Pushed by jswinarton@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/bc54aa089022 Ensure tab groups always appear in history menus r=dao,sthompson,sessionstore-reviewers
Status: NEW → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 135 Branch
Points: 2 → 3
See Also: → 1953801
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: