Bug: Intermittent [TV] browser/components/sidebar/tests/browser/browser_sidebar_max_width.js | Uncaught exception in test bound test_customize_sidebar_actions - at chrome://mochitests/content/browser/browser/components/sidebar/tests/browser/browser_sidebar
Status: RESOLVED
Priority: P5
Resolution: FIXED
Created: 2024-06-12 13:26:12+00:00
Resolved: 2024-06-17 06:41:38+00:00

**Filed by:** smolnar [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=462014380&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/JTfYwFVPREiBJSL2v03iwA/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/JTfYwFVPREiBJSL2v03iwA/runs/0/artifacts/public/logs/live_backing.log&only_show_unexpected=1

---
```
TEST-PASS | browser/components/sidebar/tests/browser/browser_sidebar_max_width.js | Sidebar is shown. - 
[task 2024-06-12T12:39:28.065Z] 12:39:28     INFO - Buffered messages finished
[task 2024-06-12T12:39:28.066Z] 12:39:28     INFO - TEST-UNEXPECTED-FAIL | browser/components/sidebar/tests/browser/browser_sidebar_max_width.js | Uncaught exception in test bound test_customize_sidebar_actions - at chrome://mochitests/content/browser/browser/components/sidebar/tests/browser/browser_sidebar_max_width.js:16 - TypeError: can't access property "click", customizeButton is undefined
[task 2024-06-12T12:39:28.066Z] 12:39:28     INFO - Stack trace:
[task 2024-06-12T12:39:28.067Z] 12:39:28     INFO - test_customize_sidebar_actions@chrome://mochitests/content/browser/browser/components/sidebar/tests/browser/browser_sidebar_max_width.js:16:3
[task 2024-06-12T12:39:28.068Z] 12:39:28     INFO - async*handleTask@chrome://mochikit/content/browser-test.js:1139:26
[task 2024-06-12T12:39:28.068Z] 12:39:28     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1211:18
[task 2024-06-12T12:39:28.069Z] 12:39:28     INFO - async*Tester_execTest@chrome://mochikit/content/browser-test.js:1353:14
[task 2024-06-12T12:39:28.070Z] 12:39:28     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1122:14
[task 2024-06-12T12:39:28.070Z] 12:39:28     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13
[task 2024-06-12T12:39:28.070Z] 12:39:28     INFO - Leaving test bound test_customize_sidebar_actions
[task 2024-06-12T12:39:28.070Z] 12:39:28     INFO - Not taking screenshot here: see the one that was previously logged
[task 2024-06-12T12:39:28.070Z] 12:39:28     INFO - TEST-UNEXPECTED-FAIL | browser/components/sidebar/tests/browser/browser_sidebar_max_width.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-06-12T12:39:28.070Z] 12:39:28     INFO - ensureDOMPromiseRejectionsProcessed@resource://testing-common/PromiseTestUtils.sys.mjs:115:17
[task 2024-06-12T12:39:28.070Z] 12:39:28     INFO - nextTest@chrome://mochikit/content/browser-test.js:773:29
[task 2024-06-12T12:39:28.070Z] 12:39:28     INFO - async*testScope/test_finish/<@chrome://mochikit/content/browser-test.js:1806:25
[task 2024-06-12T12:39:28.071Z] 12:39:28     INFO - run@chrome://mochikit/content/browser-test.js:1726:9
[task 2024-06-12T12:39:28.071Z] 12:39:28     INFO - Rejection date: Wed Jun 12 2024 12:39:27 GMT+0000 (Coordinated Universal Time) - false == true - {"filename":"resource://testing-common/PromiseTestUtils.sys.mjs","name":"assertNoUncaughtRejections","sourceId":615,"lineNumber":266,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"nextTest","sourceId":579,"lineNumber":774,"columnNumber":29,"sourceLine":"","asyncCause":null,"asyncCaller":{"filename":"chrome://mochikit/content/browser-test.js","name":"testScope/test_finish/<","sourceId":579,"lineNumber":1806,"columnNumber":25,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"run","sourceId":579,"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-06-12T12:39:28.071Z] 12:39:28     INFO - Stack trace:
[task 2024-06-12T12:39:28.071Z] 12:39:28     INFO - resource://testing-common/PromiseTestUtils.sys.mjs:assertNoUncaughtRejections:266
[task 2024-06-12T12:39:28.071Z] 12:39:28     INFO - chrome://mochikit/content/browser-test.js:nextTest:774
[task 2024-06-12T12:39:28.071Z] 12:39:28     INFO - chrome://mochikit/content/browser-test.js:testScope/test_finish/<:1806
[task 2024-06-12T12:39:28.071Z] 12:39:28     INFO - chrome://mochikit/content/browser-test.js:run:1726
[task 2024-06-12T12:39:28.071Z] 12:39:28     INFO - GECKO(1089) | JavaScript error: resource://testing-common/BrowserTestUtils.sys.mjs, line 1316: uncaught exception: SidebarFocused listener not removed before the end of test
[task 2024-06-12T12:39:28.071Z] 12:39:28     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-06-12T12:39:28.179Z] 12:39:28     INFO - GECKO(1089) | MEMORY STAT | vsize 11676MB | residentFast 613MB | heapAllocated 356MB
[task 2024-06-12T12:39:28.180Z] 12:39:28     INFO - TEST-OK | browser/components/sidebar/tests/browser/browser_sidebar_max_width.js | took 945ms
[task 2024-06-12T12:39:28.194Z] 12:39:28     INFO - checking window state
[task 2024-06-12T12:39:28.195Z] 12:39:28     INFO - Not taking screenshot here: see the one that was previously logged
[task 2024-06-12T12:39:28.196Z] 12:39:28     INFO - TEST-UNEXPECTED-FAIL | browser/components/sidebar/tests/browser/browser_sidebar_max_width.js | Found an unexpected browser window at the end of test run - 
[task 2024-06-12T12:39:28.197Z] 12:39:28     INFO - GECKO(1089) | must wait for focus
[task 2024-06-12T12:39:28.317Z] 12:39:28     INFO - GECKO(1089) | Completed ShutdownLeaks collections in process 1089
[task 2024-06-12T12:39:28.320Z] 12:39:28     INFO - TEST-START | Shutdown
```