Bug: Intermittent browser/components/tabbrowser/test/browser/tabs/browser_tab_groups_keyboard_focus.js | single tracking bug
Status: NEW
Priority: P5
Created: 2025-02-11 20:07:45+00:00
Resolved: 2025-03-03 06:34:57+00:00

**Filed by:** abutkovits [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=494427923&repo=mozilla-beta
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/WSxc5rhLSAK8SIgLikOS9w/runs/0/artifacts/public/logs/live_backing.log

---
```
[task 2025-02-11T18:46:47.590Z] 18:46:47     INFO - TEST-PASS | browser/components/tabbrowser/test/browser/tabs/browser_tab_groups_keyboard_focus.js | keyboard focus should move right collapsed tab group label to the first tab to the right of the tab group - 
[task 2025-02-11T18:46:47.590Z] 18:46:47     INFO - Buffered messages finished
[task 2025-02-11T18:46:47.592Z] 18:46:47     INFO - TEST-UNEXPECTED-FAIL | browser/components/tabbrowser/test/browser/tabs/browser_tab_groups_keyboard_focus.js | A promise chain failed to handle a rejection: group is null - stack: ssi_shouldSaveTabGroup@resource:///modules/sessionstore/SessionStore.sys.mjs:6888:21
[task 2025-02-11T18:46:47.592Z] 18:46:47     INFO - shouldSaveTabGroup@resource:///modules/sessionstore/SessionStore.sys.mjs:904:33
[task 2025-02-11T18:46:47.592Z] 18:46:47     INFO - #maybeDisableSaveButton/<@chrome://browser/content/tabbrowser/tabgroup-menu.js:274:25
[task 2025-02-11T18:46:47.592Z] 18:46:47     INFO - Rejection date: Tue Feb 11 2025 18:46:46 GMT+0000 (Coordinated Universal Time) - false == true - 
[task 2025-02-11T18:46:47.592Z] 18:46:47     INFO - Stack trace:
[task 2025-02-11T18:46:47.592Z] 18:46:47     INFO - resource://testing-common/PromiseTestUtils.sys.mjs:assertNoUncaughtRejections:266
[task 2025-02-11T18:46:47.592Z] 18:46:47     INFO - chrome://mochikit/content/browser-test.js:handleTask:1175
[task 2025-02-11T18:46:47.592Z] 18:46:47     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1219
[task 2025-02-11T18:46:47.592Z] 18:46:47     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1360
[task 2025-02-11T18:46:47.592Z] 18:46:47     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1136
[task 2025-02-11T18:46:47.592Z] 18:46:47     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1058
[task 2025-02-11T18:46:47.594Z] 18:46:47     INFO - Leaving test bound test_TabGroupKeyboardFocus
[task 2025-02-11T18:46:47.594Z] 18:46:47     INFO - Entering test bound test_TabGroupKeyboardMovement
[task 2025-02-11T18:46:47.595Z] 18:46:47     INFO - GECKO(7264) | [Child 7324: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL b987800 == 3 [pid = 7324] [id = 243]
[task 2025-02-11T18:46:47.595Z] 18:46:47     INFO - GECKO(7264) | [Child 7324: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 14 (5283380) [pid = 7324] [serial = 631] [outer = 0]
[task 2025-02-11T18:46:47.596Z] 18:46:47     INFO - GECKO(7264) | [Child 7324: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 15 (10970a00) [pid = 7324] [serial = 632] [outer = 5283380]
[task 2025-02-11T18:46:47.597Z] 18:46:47     INFO - GECKO(7264) | [Child 2328: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL b3b6400 == 2 [pid = 2328] [id = 88]
[task 2025-02-11T18:46:47.598Z] 18:46:47     INFO - GECKO(7264) | [Child 2328: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 6 (4c82670) [pid = 2328] [serial = 246] [outer = 0]
[task 2025-02-11T18:46:47.598Z] 18:46:47     INFO - GECKO(7264) | [Child 7944: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 10314300 == 5 [pid = 7944] [id = 64]
[task 2025-02-11T18:46:47.599Z] 18:46:47     INFO - GECKO(7264) | [Child 7944: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 11 (5684a10) [pid = 7944] [serial = 183] [outer = 0]
[task 2025-02-11T18:46:47.600Z] 18:46:47     INFO - GECKO(7264) | [Child 2328: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 7 (b3b7900) [pid = 2328] [serial = 247] [outer = 4c82670]
[task 2025-02-11T18:46:47.601Z] 18:46:47     INFO - GECKO(7264) | [Child 7944: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 12 (10316a00) [pid = 7944] [serial = 184] [outer = 5684a10]
[task 2025-02-11T18:46:47.601Z] 18:46:47     INFO - GECKO(7264) | [Child 5460: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL fa93800 == 3 [pid = 5460] [id = 46]
[task 2025-02-11T18:46:47.602Z] 18:46:47     INFO - GECKO(7264) | [Child 5460: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 6 (5383d00) [pid = 5460] [serial = 134] [outer = 0]
[task 2025-02-11T18:46:47.603Z] 18:46:47     INFO - GECKO(7264) | [Child 5460: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 7 (a9b2600) [pid = 5460] [serial = 135] [outer = 5383d00]
[task 2025-02-11T18:46:47.603Z] 18:46:47     INFO - GECKO(7264) | [Child 7324, Main Thread] WARNING: NS_ENSURE_TRUE(sf) failed: file /builds/worker/checkouts/gecko/dom/base/nsDOMWindowUtils.cpp:2107
[task 2025-02-11T18:46:47.604Z] 18:46:47     INFO - Console message: [JavaScript Error: "TypeError: group is null" {file: "resource:///modules/sessionstore/SessionStore.sys.mjs" line: 6888}]
[task 2025-02-11T18:46:47.605Z] 18:46:47     INFO - ssi_shouldSaveTabGroup@resource:///modules/sessionstore/SessionStore.sys.mjs:6888:21
[task 2025-02-11T18:46:47.605Z] 18:46:47     INFO - shouldSaveTabGroup@resource:///modules/sessionstore/SessionStore.sys.mjs:904:33
[task 2025-02-11T18:46:47.605Z] 18:46:47     INFO - #maybeDisableSaveButton/<@chrome://browser/content/tabbrowser/tabgroup-menu.js:274:25
[task 2025-02-11T18:46:47.605Z] 18:46:47     INFO - 
[task 2025-02-11T18:46:47.605Z] 18:46:47     INFO - GECKO(7264) | console.error: (new TypeError("WindowGlobalParent.drawSnapshot: Argument 2 is not a finite floating-point value.", "chrome://global/content/elements/browser-custom-element.js", 1952))
[task 2025-02-11T18:46:47.606Z] 18:46:47     INFO - GECKO(7264) | [Child 7324: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 16 (10971f00) [pid = 7324] [serial = 633] [outer = 5283380]
[task 2025-02-11T18:46:47.607Z] 18:46:47     INFO - GECKO(7264) | [Child 7944: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 13 (dbb6000) [pid = 7944] [serial = 185] [outer = 5684a10]
[task 2025-02-11T18:46:47.608Z] 18:46:47     INFO - GECKO(7264) | [Child 2328: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 8 (b3b9700) [pid = 2328] [serial = 248] [outer = 4c82670]
[task 2025-02-11T18:46:47.609Z] 18:46:47     INFO - GECKO(7264) | [Child 5460: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 8 (a9b3b00) [pid = 5460] [serial = 136] [outer = 5383d00]
[task 2025-02-11T18:46:47.609Z] 18:46:47     INFO - GECKO(7264) | [Child 5972: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 3 (11daaa00) [pid = 5972] [serial = 410] [outer = 0] [url = about:blank]
[task 2025-02-11T18:46:47.610Z] 18:46:47     INFO - GECKO(7264) | [Child 5972: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (11d6b400) [pid = 5972] [serial = 411] [outer = 0] [url = about:newtab]
[task 2025-02-11T18:46:47.611Z] 18:46:47     INFO - GECKO(7264) | [Child 7324: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 15 (b995f00) [pid = 7324] [serial = 625] [outer = 0] [url = about:blank]
[task 2025-02-11T18:46:47.611Z] 18:46:47     INFO - GECKO(7264) | [Child 7324: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 14 (b994400) [pid = 7324] [serial = 623] [outer = 0] [url = about:blank]
[task 2025-02-11T18:46:47.612Z] 18:46:47     INFO - GECKO(7264) | [Child 7324: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 13 (10973400) [pid = 7324] [serial = 621] [outer = 0] [url = about:blank]
[task 2025-02-11T18:46:47.613Z] 18:46:47     INFO - GECKO(7264) | [Child 7324: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 12 (10970d00) [pid = 7324] [serial = 619] [outer = 0] [url = about:blank]
[task 2025-02-11T18:46:47.614Z] 18:46:47     INFO - GECKO(7264) | [Child 7324: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 11 (b988700) [pid = 7324] [serial = 617] [outer = 0] [url = about:blank]
[task 2025-02-11T18:46:47.614Z] 18:46:47     INFO - GECKO(7264) | [Child 7324: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 10 (b986f00) [pid = 7324] [serial = 616] [outer = 0] [url = about:blank]
[task 2025-02-11T18:46:47.615Z] 18:46:47     INFO - GECKO(7264) | [Child 7324: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 9 (b985100) [pid = 7324] [serial = 614] [outer = 0] [url = about:blank]
[task 2025-02-11T18:46:47.616Z] 18:46:47     INFO - GECKO(7264) | [Child 7324: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 8 (aca8200) [pid = 7324] [serial = 613] [outer = 0] [url = about:blank]
[task 2025-02-11T18:46:47.616Z] 18:46:47     INFO - GECKO(7264) | [Child 7324: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL b996b00 == 2 [pid = 7324] [id = 241] [url = about:blank]
[task 2025-02-11T18:46:47.617Z] 18:46:47     INFO - GECKO(7264) | [Child 7324: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL b985700 == 1 [pid = 7324] [id = 242] [url = about:blank]
[task 2025-02-11T18:46:47.618Z] 18:46:47     INFO - GECKO(7264) | [Child 7324: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 7 (52827a0) [pid = 7324] [serial = 628] [outer = 0] [url = about:blank]
[task 2025-02-11T18:46:47.618Z] 18:46:47     INFO - GECKO(7264) | [Child 7324: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 6 (5284b40) [pid = 7324] [serial = 626] [outer = 0] [url = about:blank]
[task 2025-02-11T18:46:48.496Z] 18:46:48     INFO - GECKO(7264) | [Parent 7344: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 51 (1ddfe8e0) [pid = 7344] [serial = 759] [outer = 0] [url = about:blank]
[task 2025-02-11T18:46:48.498Z] 18:46:48     INFO - GECKO(7264) | [Parent 7344: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 50 (1f622a00) [pid = 7344] [serial = 750] [outer = 0] [url = about:mozilla]
[task 2025-02-11T18:46:48.499Z] 18:46:48     INFO - GECKO(7264) | [Parent 7344: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 49 (288c1410) [pid = 7344] [serial = 763] [outer = 0] [url = about:blank]
[task 2025-02-11T18:46:48.500Z] 18:46:48     INFO - GECKO(7264) | [Parent 7344: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 48 (2facc710) [pid = 7344] [serial = 748] [outer = 0] [url = about:robots]
[task 2025-02-11T18:46:48.500Z] 18:46:48     INFO - GECKO(7264) | [Parent 7344: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 47 (1e4108d0) [pid = 7344] [serial = 746] [outer = 0] [url = about:cache]
[task 2025-02-11T18:46:48.501Z] 18:46:48     INFO - GECKO(7264) | [Parent 7344: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 46 (1ddfec70) [pid = 7344] [serial = 761] [outer = 0] [url = about:blank]
[task 2025-02-11T18:46:48.501Z] 18:46:48     INFO - GECKO(7264) | [Parent 7344: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 45 (2facc120) [pid = 7344] [serial = 765] [outer = 0] [url = about:mozilla]
[task 2025-02-11T18:46:48.504Z] 18:46:48     INFO - GECKO(7264) | [Parent 7344: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 44 (2facded0) [pid = 7344] [serial = 738] [outer = 0] [url = chrome://browser/content/browser.xhtml]
[task 2025-02-11T18:46:48.505Z] 18:46:48     INFO - GECKO(7264) | [Parent 7344: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 43 (288c2970) [pid = 7344] [serial = 716] [outer = 0] [url = chrome://browser/content/browser.xhtml]
[task 2025-02-11T18:46:48.505Z] 18:46:48     INFO - GECKO(7264) | [Parent 7344: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 42 (3052e090) [pid = 7344] [serial = 742] [outer = 0] [url = chrome://browser/content/browser.xhtml]
[task 2025-02-11T18:46:48.506Z] 18:46:48     INFO - GECKO(7264) | [Parent 7344: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 41 (3352d420) [pid = 7344] [serial = 734] [outer = 0] [url = chrome://browser/content/browser.xhtml]
[task 2025-02-11T18:46:48.507Z] 18:46:48     INFO - GECKO(7264) | [Parent 7344: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 40 (2662d080) [pid = 7344] [serial = 730] [outer = 0] [url = chrome://browser/content/browser.xhtml]
[task 2025-02-11T18:46:48.508Z] 18:46:48     INFO - GECKO(7264) | [Parent 7344: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 39 (1f64cff0) [pid = 7344] [serial = 726] [outer = 0] [url = chrome://browser/content/browser.xhtml]
[task 2025-02-11T18:46:48.508Z] 18:46:48     INFO - GECKO(7264) | [Parent 7344: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 38 (192a9670) [pid = 7344] [serial = 722] [outer = 0] [url = chrome://browser/content/browser.xhtml]
[task 2025-02-11T18:46:48.509Z] 18:46:48     INFO - GECKO(7264) | [Parent 7344: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 37 (1e5b51c0) [pid = 7344] [serial = 709] [outer = 0] [url = chrome://browser/content/browser.xhtml]
[task 2025-02-11T18:46:48.510Z] 18:46:48     INFO - GECKO(7264) | [Parent 7344: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 36 (1692c670) [pid = 7344] [serial = 701] [outer = 0] [url = chrome://browser/content/browser.xhtml]
[task 2025-02-11T18:46:48.511Z] 18:46:48     INFO - GECKO(7264) | [Parent 7344: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 35 (1e455120) [pid = 7344] [serial = 705] [outer = 0] [url = chrome://browser/content/browser.xhtml]
[task 2025-02-11T18:46:48.511Z] 18:46:48     INFO - GECKO(7264) | [Parent 7344: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 2858ca00 == 13 [pid = 7344] [id = 311] [url = chrome://mochitests/content/browser/browser/components/tabbrowser/test/browser/tabs/browser_tab_dragdrop2_frame1.xhtml]
[task 2025-02-11T18:46:48.512Z] 18:46:48     INFO - GECKO(7264) | [Parent 7344: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 2a344c00 == 12 [pid = 7344] [id = 314] [url = about:blank]
[task 2025-02-11T18:46:48.828Z] 18:46:48     INFO - GECKO(7264) | [Child 5460: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 535d400 == 2 [pid = 5460] [id = 44] [url = about:blank]
[task 2025-02-11T18:46:48.829Z] 18:46:48     INFO - GECKO(7264) | [Child 5460: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL fa92300 == 1 [pid = 5460] [id = 45] [url = about:blank]
[task 2025-02-11T18:46:48.869Z] 18:46:48     INFO - GECKO(7264) | [Child 5460: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 7 (5383970) [pid = 5460] [serial = 131] [outer = 0] [url = about:blank]
[task 2025-02-11T18:46:48.872Z] 18:46:48     INFO - GECKO(7264) | [Child 5460: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 6 (5383840) [pid = 5460] [serial = 129] [outer = 0] [url = about:blank]
[task 2025-02-11T18:46:49.071Z] 18:46:49     INFO - Move focus to the active tab
[task 2025-02-11T18:46:49.083Z] 18:46:49     INFO - TEST-PASS | browser/components/tabbrowser/test/browser/tabs/browser_tab_groups_keyboard_focus.js | Tab2 should be focused -
```