Bug: Intermittent browser/components/sidebar/tests/browser/browser_customize_sidebar.js | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: FIXED
Created: 2024-05-15 21:12:33+00:00
Resolved: 2024-06-24 06:05:02+00:00

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

---
```
[task 2024-05-15T20:49:19.148Z] 20:49:19     INFO - TEST-PASS | browser/components/sidebar/tests/browser/browser_customize_sidebar.js | Sidebar is shown. - 
[task 2024-05-15T20:49:19.149Z] 20:49:19     INFO - Buffered messages finished
[task 2024-05-15T20:49:19.150Z] 20:49:19     INFO - TEST-UNEXPECTED-FAIL | browser/components/sidebar/tests/browser/browser_customize_sidebar.js | Uncaught exception in test bound test_customize_sidebar_actions - at chrome://mochitests/content/browser/browser/components/sidebar/tests/browser/browser_customize_sidebar.js:17 - TypeError: can't access property "click", button is undefined
[task 2024-05-15T20:49:19.150Z] 20:49:19     INFO - Stack trace:
[task 2024-05-15T20:49:19.150Z] 20:49:19     INFO - test_customize_sidebar_actions@chrome://mochitests/content/browser/browser/components/sidebar/tests/browser/browser_customize_sidebar.js:17:3
[task 2024-05-15T20:49:19.150Z] 20:49:19     INFO - async*handleTask@chrome://mochikit/content/browser-test.js:1139:26
[task 2024-05-15T20:49:19.150Z] 20:49:19     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1211:18
[task 2024-05-15T20:49:19.150Z] 20:49:19     INFO - async*Tester_execTest@chrome://mochikit/content/browser-test.js:1353:14
[task 2024-05-15T20:49:19.150Z] 20:49:19     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1128:14
[task 2024-05-15T20:49:19.151Z] 20:49:19     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13
[task 2024-05-15T20:49:19.151Z] 20:49:19     INFO - Leaving test bound test_customize_sidebar_actions
[task 2024-05-15T20:49:19.152Z] 20:49:19     INFO - GECKO(1372) | [Child 1384, Main Thread] WARNING: 'presShell->NeedLayoutFlush()', file /builds/worker/checkouts/gecko/layout/base/nsRefreshDriver.cpp:2255
[task 2024-05-15T20:49:19.153Z] 20:49:19     INFO - Not taking screenshot here: see the one that was previously logged
[task 2024-05-15T20:49:19.158Z] 20:49:19     INFO - TEST-UNEXPECTED-FAIL | browser/components/sidebar/tests/browser/browser_customize_sidebar.js | A promise chain failed to handle a rejection: SidebarFocused listener not removed before the end of test - stack: waitForEvent/</<@resource://testing-common/BrowserTestUtils.sys.mjs:1316:15
[task 2024-05-15T20:49:19.158Z] 20:49:19     INFO - ensureDOMPromiseRejectionsProcessed@resource://testing-common/PromiseTestUtils.sys.mjs:115:17
[task 2024-05-15T20:49:19.158Z] 20:49:19     INFO - nextTest@chrome://mochikit/content/browser-test.js:773:29
[task 2024-05-15T20:49:19.159Z] 20:49:19     INFO - async*testScope/test_finish/<@chrome://mochikit/content/browser-test.js:1806:25
[task 2024-05-15T20:49:19.159Z] 20:49:19     INFO - run@chrome://mochikit/content/browser-test.js:1726:9
[task 2024-05-15T20:49:19.159Z] 20:49:19     INFO - Rejection date: Wed May 15 2024 20:49:19 GMT+0000 (Greenwich Mean Time) - false == true - {"filename":"resource://testing-common/PromiseTestUtils.sys.mjs","name":"assertNoUncaughtRejections","sourceId":611,"lineNumber":266,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"nextTest","sourceId":576,"lineNumber":774,"columnNumber":29,"sourceLine":"","asyncCause":null,"asyncCaller":{"filename":"chrome://mochikit/content/browser-test.js","name":"testScope/test_finish/<","sourceId":576,"lineNumber":1806,"columnNumber":25,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"run","sourceId":576,"lineNumber":1726,"columnNumber":9,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":null,"formattedStack":"run@chrome://mochikit/content/browser-test.js:1726:9\n","nativeSavedFrame":{}},"formattedStack":"async*testScope/test_finish/<@chrome://mochikit/content/browser-test.js:1806:25\nrun@chrome://mochikit/content/browser-test.js:1726:9\n","nativeSavedFrame":{}},"caller":null,"formattedStack":"nextTest@chrome://mochikit/content/browser-test.js:774:29\nasync*testScope/test_finish/<@chrome://mochikit/content/browser-test.js:1806:25\nrun@chrome://mochikit/content/browser-test.js:1726:9\n","nativeSavedFrame":{}},"formattedStack":"assertNoUncaughtRejections@resource://testing-common/PromiseTestUtils.sys.mjs:266:14\nnextTest@chrome://mochikit/content/browser-test.js:774:29\nasync*testScope/test_finish/<@chrome://mochikit/content/browser-test.js:1806:25\nrun@chrome://mochikit/content/browser-test.js:1726:9\n","nativeSavedFrame":{}}
[task 2024-05-15T20:49:19.159Z] 20:49:19     INFO - Stack trace:
[task 2024-05-15T20:49:19.159Z] 20:49:19     INFO - resource://testing-common/PromiseTestUtils.sys.mjs:assertNoUncaughtRejections:266
[task 2024-05-15T20:49:19.159Z] 20:49:19     INFO - chrome://mochikit/content/browser-test.js:nextTest:774
[task 2024-05-15T20:49:19.159Z] 20:49:19     INFO - chrome://mochikit/content/browser-test.js:testScope/test_finish/<:1806
[task 2024-05-15T20:49:19.159Z] 20:49:19     INFO - chrome://mochikit/content/browser-test.js:run:1726
[task 2024-05-15T20:49:19.160Z] 20:49:19     INFO - GECKO(1372) | JavaScript error: resource://testing-common/BrowserTestUtils.sys.mjs, line 1316: uncaught exception: SidebarFocused listener not removed before the end of test
[task 2024-05-15T20:49:19.161Z] 20:49:19     INFO - Console message: [JavaScript Error: "uncaught exception: SidebarFocused listener not removed before the end of test" {file: "resource://testing-common/BrowserTestUtils.sys.mjs" line: 1316}]
[task 2024-05-15T20:49:19.161Z] 20:49:19     INFO - GECKO(1372) | [Child 1384: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 12c9f6800 == 2 [pid = 1384] [id = 1]
[task 2024-05-15T20:49:19.162Z] 20:49:19     INFO - GECKO(1372) | [Child 1384: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 4 (10a4456a0) [pid = 1384] [serial = 4] [outer = 0]
[task 2024-05-15T20:49:19.163Z] 20:49:19     INFO - GECKO(1372) | [Child 1384: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 5 (12c9f6c00) [pid = 1384] [serial = 5] [outer = 10a4456a0]
[task 2024-05-15T20:49:19.164Z] 20:49:19     INFO - GECKO(1372) | ### XPCOM_MEM_BLOAT_LOG defined -- logging bloat/leaks to /var/folders/r_/r46s1b4x7hs1kd9cpft9wrr0000014/T/tmp5ayr9e59.mozrunner/runtests_leaks_tab_pid1386.log
[task 2024-05-15T20:49:19.236Z] 20:49:19     INFO - GECKO(1372) | [Child 1384: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 6 (12d250400) [pid = 1384] [serial = 6] [outer = 10a4456a0]
[task 2024-05-15T20:49:19.711Z] 20:49:19     INFO - GECKO(1372) | MEMORY STAT vsizeMaxContiguous not supported in this build configuration.
[task 2024-05-15T20:49:19.712Z] 20:49:19     INFO - GECKO(1372) | MEMORY STAT | vsize 16028MB | residentFast 400MB | heapAllocated 204MB
[task 2024-05-15T20:49:19.712Z] 20:49:19     INFO - TEST-OK | browser/components/sidebar/tests/browser/browser_customize_sidebar.js | took 1679ms
[task 2024-05-15T20:49:19.724Z] 20:49:19     INFO - GECKO(1372) | [Child 1378: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 111830800 == 1 [pid = 1378] [id = 0]
[task 2024-05-15T20:49:19.725Z] 20:49:19     INFO - GECKO(1372) | [Child 1378: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 1 (10f4443e0) [pid = 1378] [serial = 1] [outer = 0]
[task 2024-05-15T20:49:19.726Z] 20:49:19     INFO - GECKO(1372) | [Child 1378: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 2 (111833800) [pid = 1378] [serial = 2] [outer = 10f4443e0]
[task 2024-05-15T20:49:19.753Z] 20:49:19     INFO - checking window state
[task 2024-05-15T20:49:19.754Z] 20:49:19     INFO - Not taking screenshot here: see the one that was previously logged
[task 2024-05-15T20:49:19.755Z] 20:49:19     INFO - TEST-UNEXPECTED-FAIL | browser/components/sidebar/tests/browser/browser_customize_sidebar.js | Found an unexpected browser window at the end of test run - 
[task 2024-05-15T20:49:19.756Z] 20:49:19     INFO - GECKO(1372) | must wait for focus
[task 2024-05-15T20:49:19.854Z] 20:49:19     INFO - TEST-START | browser/components/sidebar/tests/browser/browser_extensions_sidebar.js
```