Bug: Intermittent TV browser/components/tabbrowser/test/browser/tabs/browser_tab_groups_keyboard_focus.js | Uncaught exception in test bound test_TabGroupKeyboardFocus - Waiting for element to get keyboard focus - timed out after 50 tries.
Status: NEW
Priority: P5
Created: 2025-01-20 17:10:54+00:00
Resolved: 2025-02-04 17:45:12+00:00

**Filed by:** amarc [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=490935642&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/L4AwDbVoSvuLxuXJwaurEw/runs/0/artifacts/public/logs/live_backing.log
**Reftest URL:** https://hg.mozilla.org/mozilla-central/raw-file/tip/layout/tools/reftest/reftest-analyzer.xhtml#logurl=https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/L4AwDbVoSvuLxuXJwaurEw/runs/0/artifacts/public/logs/live_backing.log&only_show_unexpected=1

---
```
[task 2025-01-20T16:26:02.591Z] 16:26:02     INFO - TEST-START | browser/components/tabbrowser/test/browser/tabs/browser_tab_groups_keyboard_focus.js
[task 2025-01-20T16:26:02.791Z] 16:26:02     INFO - GECKO(7456) | 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-01-20T16:26:10.302Z] 16:26:10     INFO - TEST-INFO | started process screenshot
[task 2025-01-20T16:26:10.776Z] 16:26:10     INFO - TEST-INFO | screenshot: exit 0
[task 2025-01-20T16:26:10.777Z] 16:26:10     INFO - Buffered messages logged at 16:26:02
[task 2025-01-20T16:26:10.777Z] 16:26:10     INFO - Entering setup bound 
[task 2025-01-20T16:26:10.778Z] 16:26:10     INFO - Leaving setup bound 
[task 2025-01-20T16:26:10.778Z] 16:26:10     INFO - Entering test bound test_TabGroupKeyboardFocus
[task 2025-01-20T16:26:10.779Z] 16:26:10     INFO - Buffered messages logged at 16:26:04
[task 2025-01-20T16:26:10.779Z] 16:26:10     INFO - Move focus to the active tab
[task 2025-01-20T16:26:10.780Z] 16:26:10     INFO - TEST-PASS | browser/components/tabbrowser/test/browser/tabs/browser_tab_groups_keyboard_focus.js | Tab2 should be focused - 
[task 2025-01-20T16:26:10.781Z] 16:26:10     INFO - TEST-PASS | browser/components/tabbrowser/test/browser/tabs/browser_tab_groups_keyboard_focus.js | Tab2 should be keyboard-focused as well - 
[task 2025-01-20T16:26:10.781Z] 16:26:10     INFO - TEST-PASS | browser/components/tabbrowser/test/browser/tabs/browser_tab_groups_keyboard_focus.js | keyboard focus should move left from tab to tab group label - 
[task 2025-01-20T16:26:10.782Z] 16:26:10     INFO - Console message: [JavaScript Warning: "Key event not available on some keyboard layouts: key=�z� modifiers=�control,alt� id=�toggleSidebarKb�" {file: "chrome://mochikit/content/tests/SimpleTest/EventUtils.js" line: 1695}]
[task 2025-01-20T16:26:10.783Z] 16:26:10     INFO - Console message: [JavaScript Warning: "Key event not available on some keyboard layouts: key=�x� modifiers=�accel,alt� id=�viewGenaiChatSidebarKb�" {file: "chrome://mochikit/content/tests/SimpleTest/EventUtils.js" line: 1695}]
[task 2025-01-20T16:26:10.784Z] 16:26:10     INFO - Console message: [JavaScript Warning: "Key event not available on some keyboard layouts: key=�i� modifiers=�accel,alt,shift� id=�key_browserToolbox�" {file: "chrome://mochikit/content/tests/SimpleTest/EventUtils.js" line: 1695}]
[task 2025-01-20T16:26:10.785Z] 16:26:10     INFO - TEST-PASS | browser/components/tabbrowser/test/browser/tabs/browser_tab_groups_keyboard_focus.js | keyboard focus should move left from tab group label to tab - 
[task 2025-01-20T16:26:10.786Z] 16:26:10     INFO - TEST-PASS | browser/components/tabbrowser/test/browser/tabs/browser_tab_groups_keyboard_focus.js | keyboard focus should move right from tab to tab group label - 
[task 2025-01-20T16:26:10.786Z] 16:26:10     INFO - TEST-PASS | browser/components/tabbrowser/test/browser/tabs/browser_tab_groups_keyboard_focus.js | keyboard focus 'up' should move left from tab group label to tab with LTR GUI - 
[task 2025-01-20T16:26:10.787Z] 16:26:10     INFO - TEST-PASS | browser/components/tabbrowser/test/browser/tabs/browser_tab_groups_keyboard_focus.js | keyboard focus 'down' should move right from tab to tab group label with LTR GUI - 
[task 2025-01-20T16:26:10.788Z] 16:26:10     INFO - Validate that the keyboard can control the expanded/collapsed state of the tab group
[task 2025-01-20T16:26:10.788Z] 16:26:10     INFO - TEST-PASS | browser/components/tabbrowser/test/browser/tabs/browser_tab_groups_keyboard_focus.js | Tab group should be expanded - true == true - 
[task 2025-01-20T16:26:10.789Z] 16:26:10     INFO - TEST-PASS | browser/components/tabbrowser/test/browser/tabs/browser_tab_groups_keyboard_focus.js | Tab group should be collapsed - true == true - 
[task 2025-01-20T16:26:10.790Z] 16:26:10     INFO - TEST-PASS | browser/components/tabbrowser/test/browser/tabs/browser_tab_groups_keyboard_focus.js | keyboard focus should remain on tab group label after collapse - 
[task 2025-01-20T16:26:10.790Z] 16:26:10     INFO - TEST-PASS | browser/components/tabbrowser/test/browser/tabs/browser_tab_groups_keyboard_focus.js | active tab should automatically change to the next visible tab if the active tab is in a tab group that gets collapsed - 
[task 2025-01-20T16:26:10.791Z] 16:26:10     INFO - TEST-PASS | browser/components/tabbrowser/test/browser/tabs/browser_tab_groups_keyboard_focus.js | Tab group should be expanded - true == true - 
[task 2025-01-20T16:26:10.792Z] 16:26:10     INFO - TEST-PASS | browser/components/tabbrowser/test/browser/tabs/browser_tab_groups_keyboard_focus.js | Tab group should be collapsed once again - true == true - 
[task 2025-01-20T16:26:10.793Z] 16:26:10     INFO - Waiting for the context menu key to open the group context menu
[task 2025-01-20T16:26:10.793Z] 16:26:10     INFO - TEST-PASS | browser/components/tabbrowser/test/browser/tabs/browser_tab_groups_keyboard_focus.js | Tab group context menu should be open after hitting context menu key - 
[task 2025-01-20T16:26:10.794Z] 16:26:10     INFO - TEST-PASS | browser/components/tabbrowser/test/browser/tabs/browser_tab_groups_keyboard_focus.js | Keyboard focus should remain on tab group label while group context menu is open - 
[task 2025-01-20T16:26:10.794Z] 16:26:10     INFO - TEST-PASS | browser/components/tabbrowser/test/browser/tabs/browser_tab_groups_keyboard_focus.js | Keyboard focus should remain on tab group label after closing the group menu context menu - 
[task 2025-01-20T16:26:10.795Z] 16:26:10     INFO - Validate that keyboard focus skips over tabs in collapsed tab groups
[task 2025-01-20T16:26:10.795Z] 16:26:10     INFO - Buffered messages finished
[task 2025-01-20T16:26:10.796Z] 16:26:10     INFO - TEST-UNEXPECTED-FAIL | browser/components/tabbrowser/test/browser/tabs/browser_tab_groups_keyboard_focus.js | Uncaught exception in test bound test_TabGroupKeyboardFocus - Waiting for element to get keyboard focus - timed out after 50 tries.
[task 2025-01-20T16:26:10.796Z] 16:26:10     INFO - Leaving test bound test_TabGroupKeyboardFocus
[task 2025-01-20T16:26:10.797Z] 16:26:10     INFO - Entering test bound test_TabGroupKeyboardMovement
[task 2025-01-20T16:26:10.797Z] 16:26:10     INFO - GECKO(7456) | 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-01-20T16:26:12.373Z] 16:26:12     INFO - Move focus to the active tab
[task 2025-01-20T16:26:12.375Z] 16:26:12     INFO - TEST-PASS | browser/components/tabbrowser/test/browser/tabs/browser_tab_groups_keyboard_focus.js | Tab2 should be focused - 
[task 2025-01-20T16:26:12.376Z] 16:26:12     INFO - Not taking screenshot here: see the one that was previously logged
[task 2025-01-20T16:26:12.378Z] 16:26:12     INFO - TEST-UNEXPECTED-FAIL | browser/components/tabbrowser/test/browser/tabs/browser_tab_groups_keyboard_focus.js | Tab2 should be keyboard-focused as well - Got [object XULTextElement], expected [object XULElement]
[task 2025-01-20T16:26:12.378Z] 16:26:12     INFO - Stack trace:
[task 2025-01-20T16:26:12.378Z] 16:26:12     INFO - chrome://mochikit/content/browser-test.js:test_is:1627
[task 2025-01-20T16:26:12.378Z] 16:26:12     INFO - chrome://mochitests/content/browser/browser/components/tabbrowser/test/browser/tabs/browser_tab_groups_keyboard_focus.js:test_TabGroupKeyboardMovement:194
[task 2025-01-20T16:26:12.378Z] 16:26:12     INFO - chrome://mochikit/content/browser-test.js:handleTask:1147
[task 2025-01-20T16:26:12.378Z] 16:26:12     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1219
[task 2025-01-20T16:26:12.378Z] 16:26:12     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1360
[task 2025-01-20T16:26:12.378Z] 16:26:12     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1130
[task 2025-01-20T16:26:12.378Z] 16:26:12     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1058
[task 2025-01-20T16:26:17.960Z] 16:26:17     INFO - Not taking screenshot here: see the one that was previously logged
[task 2025-01-20T16:26:17.961Z] 16:26:17     INFO - TEST-UNEXPECTED-FAIL | browser/components/tabbrowser/test/browser/tabs/browser_tab_groups_keyboard_focus.js | Uncaught exception in test bound test_TabGroupKeyboardMovement - Waiting for element to become active tab and/or get keyboard focus - timed out after 50 tries.
[task 2025-01-20T16:26:17.961Z] 16:26:17     INFO - Leaving test bound test_TabGroupKeyboardMovement
[task 2025-01-20T16:26:17.985Z] 16:26:17     INFO - GECKO(7456) | MEMORY STAT | vsize 995MB | vsizeMaxContiguous 1293MB | residentFast 245MB | heapAllocated 90MB
[task 2025-01-20T16:26:17.986Z] 16:26:17     INFO - TEST-OK | browser/components/tabbrowser/test/browser/tabs/browser_tab_groups_keyboard_focus.js | took 15396ms
[task 2025-01-20T16:26:17.987Z] 16:26:17     INFO - Not taking screenshot here: see the one that was previously logged
[task 2025-01-20T16:26:17.987Z] 16:26:17     INFO - TEST-UNEXPECTED-FAIL | browser/components/tabbrowser/test/browser/tabs/browser_tab_groups_keyboard_focus.js | Found an unexpected tab at the end of test run: about:blank - 
[task 2025-01-20T16:26:17.989Z] 16:26:17     INFO - Not taking screenshot here: see the one that was previously logged
[task 2025-01-20T16:26:17.990Z] 16:26:17     INFO - TEST-UNEXPECTED-FAIL | browser/components/tabbrowser/test/browser/tabs/browser_tab_groups_keyboard_focus.js | Found an unexpected tab at the end of test run: about:blank - 
[task 2025-01-20T16:26:17.990Z] 16:26:17     INFO - Not taking screenshot here: see the one that was previously logged
[task 2025-01-20T16:26:17.991Z] 16:26:17     INFO - TEST-UNEXPECTED-FAIL | browser/components/tabbrowser/test/browser/tabs/browser_tab_groups_keyboard_focus.js | Found an unexpected tab at the end of test run: about:blank - 
[task 2025-01-20T16:26:17.993Z] 16:26:17     INFO - Not taking screenshot here: see the one that was previously logged
[task 2025-01-20T16:26:17.994Z] 16:26:17     INFO - TEST-UNEXPECTED-FAIL | browser/components/tabbrowser/test/browser/tabs/browser_tab_groups_keyboard_focus.js | terminating browser early - unable to close tabs; skipping remaining tests in folder - 
[task 2025-01-20T16:26:17.995Z] 16:26:17     INFO - GECKO(7456) | Completed ShutdownLeaks collections in process 7116
[task 2025-01-20T16:26:17.995Z] 16:26:17     INFO - TEST-START | Shutdown
```