Closed Bug 2031961 Opened 13 days ago Closed 11 days ago

Unable to add tabs to old closed tab groups (tabGroupState.splitViews is undefined)

Categories

(Firefox :: Session Restore, defect, P1)

Firefox 151
defect

Tracking

()

VERIFIED FIXED
151 Branch
Tracking Status
firefox-esr140 --- unaffected
firefox149 --- wontfix
firefox150 --- verified
firefox151 --- verified
firefox152 --- verified

People

(Reporter: nish, Assigned: nish, NeedInfo)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:151.0) Gecko/20100101 Firefox/151.0

Steps to reproduce:

  1. had a old closed tab group (is atleast 6-8 months old)
  2. add a new tab to that closed tab group (right click on tab -> Add tab to tab group -> Closed Groups -> The old tab group

Actual results:

Uncaught TypeError: can't access property "push", tabGroupState.splitViews is undefined
addTabsToSavedGroup resource:///modules/sessionstore/SessionStore.sys.mjs:8530
addTabsToSavedGroup resource:///modules/sessionstore/SessionStore.sys.mjs:901
addTabsToSavedGroup chrome://browser/content/tabbrowser/tabbrowser.js:10934
<anonymous> chrome://browser/content/main-popupset.js:471
SessionStore.sys.mjs:8530:5
addTabsToSavedGroup resource:///modules/sessionstore/SessionStore.sys.mjs:8530
addTabsToSavedGroup resource:///modules/sessionstore/SessionStore.sys.mjs:901
addTabsToSavedGroup chrome://browser/content/tabbrowser/tabbrowser.js:10934
<anonymous> chrome://browser/content/main-popupset.js:471

https://searchfox.org/firefox-main/source/browser/components/sessionstore/SessionStore.sys.mjs#8530 apparently the old tab group doesn't have this new property "splitViews", so a backward incompatible change was pushed

Expected results:

add tab to tab group

Component: Untriaged → Session Restore
Keywords: regression
Regressed by: 1995818

:nsharpley, since you are the author of the regressor, bug 1995818, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Flags: needinfo?(nsharpley)

some more info, reading my sessionstore.jsonlz4, i found that particular tab group was 'closedAt' : 1745741839853 (12 months ago)

while new tab groups have splitviews property,

{
"id": "1776241327834-50",
"name": "Example Closed Grp",
"color": "orange",
"collapsed": true,
"saveOnWindowClose": true,
"closedAt": 1776241410077,
"sourceWindowId": "window0",
"tabs": []
"splitViews": [],
"saved": true
}

old ones are like:

{
"id": "1745602415606-12",
"name": "old tab grp",
"color": "purple",
"collapsed": true,
"saveOnWindowClose": true,
"closedAt": 1745741839853,
"sourceWindowId": "window0",
"tabs": []
"saved": true
}

Older Tab groups don't have the property tabGroupState.splitViews leading to SessionStore.sys.mjs crashing when adding any new tab to these groups

Assignee: nobody → sua8kjwyy
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

Set release status flags based on info from the regressing bug 1995818

Pushed by nsharpley@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/a49cf5708b53 https://hg.mozilla.org/integration/autoland/rev/a30396dec9ca Initialize tabGroupState.splitViews to prevent TypeError r=sessionstore-reviewers,nsharpley
Status: ASSIGNED → RESOLVED
Closed: 11 days ago
Resolution: --- → FIXED
Target Milestone: --- → 151 Branch

The patch landed in nightly and beta is affected.
:nish, is this bug important enough to require an uplift?

For more information, please visit BugBot documentation.

Flags: needinfo?(sua8kjwyy)

I can confirm that in nightly Version 151.0a1 (2026-04-17) (64-bit) my old tab groups (that i have multiple of) now are able to add new tabs to them and the sessionstore.jsonlz4 is updating to have the new property splitViews which it didn't before...

The bug is quite annoying for people who have many old closed? tab groups, don't know if its needs an uplift though
(and i think i don't have permission to set it to wontfix)

Flags: needinfo?(sua8kjwyy)

Older Tab groups don't have the property tabGroupState.splitViews leading to SessionStore.sys.mjs crashing when adding any new tab to these groups

Original Revision: https://phabricator.services.mozilla.com/D294570

Attachment #9571664 - Flags: approval-mozilla-release?

firefox-release Uplift Approval Request

  • User impact if declined/Reason for urgency: Unable to add tabs to closed tab groups from before this patch.
  • Code covered by automated testing?: no
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: yes
  • Steps to reproduce for manual QE testing: Before applying the patch, create and save a tab group. Apply the patch. Restore the session and attempt to add tabs to the saved tab group.
  • Risk associated with taking this patch: low
  • Explanation of risk level: Very low risk one line change.
  • String changes made/needed?: N/A
  • Is Android affected?: no
Flags: qe-verify+
QA Whiteboard: [uplift] [qa-ver-needed-c152/b151]
Severity: -- → S3
Priority: -- → P1

I was able to reproduce the issue on Win11x64 using Firefox build 138.0.
Verified with same profile that on Win11x64 using Firefox build 151.0b1, issue is not reproducing.
Issue is not reproducing on Win11x64 using latest Nightly 152.0a1(20260421211246) using an upgrade from 139.0a1.

Status: RESOLVED → VERIFIED
QA Whiteboard: [uplift] [qa-ver-needed-c152/b151] → [uplift] [qa-ver-done-c152/b151]
Flags: qe-verify+
QA Contact: mchiorean
Attachment #9571664 - Flags: approval-mozilla-release? → approval-mozilla-release+

Issue is not reproducing on Win11x64 using Firefox 150.0.1(20260427013024). Marking as fixed.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: