Bug: Intermittent browser/components/sidebar/tests/browser/browser_sidebar_prefs.js | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: FIXED
Created: 2024-06-12 16:10:12+00:00
Resolved: 2024-09-02 06:49:34+00:00

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

---
```
TEST-PASS | browser/components/sidebar/tests/browser/browser_sidebar_prefs.js | Default tools should be history and syncedtabs - 
[task 2024-06-12T15:36:56.220Z] 15:36:56     INFO - Buffered messages finished
[task 2024-06-12T15:36:56.221Z] 15:36:56     INFO - TEST-UNEXPECTED-FAIL | browser/components/sidebar/tests/browser/browser_sidebar_prefs.js | Uncaught exception in test bound test_tools_prefs - at chrome://mochitests/content/browser/browser/components/sidebar/tests/browser/browser_sidebar_prefs.js:22 - TypeError: can't access property "click", button is undefined
[task 2024-06-12T15:36:56.221Z] 15:36:56     INFO - Stack trace:
[task 2024-06-12T15:36:56.221Z] 15:36:56     INFO - test_tools_prefs@chrome://mochitests/content/browser/browser/components/sidebar/tests/browser/browser_sidebar_prefs.js:22:3
[task 2024-06-12T15:36:56.221Z] 15:36:56     INFO - async*handleTask@chrome://mochikit/content/browser-test.js:1139:26
[task 2024-06-12T15:36:56.221Z] 15:36:56     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1211:18
[task 2024-06-12T15:36:56.221Z] 15:36:56     INFO - async*Tester_execTest@chrome://mochikit/content/browser-test.js:1353:14
[task 2024-06-12T15:36:56.221Z] 15:36:56     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1122:14
[task 2024-06-12T15:36:56.221Z] 15:36:56     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13
[task 2024-06-12T15:36:56.224Z] 15:36:56     INFO - Leaving test bound test_tools_prefs
[task 2024-06-12T15:36:56.224Z] 15:36:56     INFO - Not taking screenshot here: see the one that was previously logged
[task 2024-06-12T15:36:56.226Z] 15:36:56     INFO - TEST-UNEXPECTED-FAIL | browser/components/sidebar/tests/browser/browser_sidebar_prefs.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-12T15:36:56.226Z] 15:36:56     INFO - ensureDOMPromiseRejectionsProcessed@resource://testing-common/PromiseTestUtils.sys.mjs:115:17
[task 2024-06-12T15:36:56.226Z] 15:36:56     INFO - nextTest@chrome://mochikit/content/browser-test.js:773:29
[task 2024-06-12T15:36:56.226Z] 15:36:56     INFO - testScope/test_finish/<@chrome://mochikit/content/browser-test.js:1806:25
[task 2024-06-12T15:36:56.226Z] 15:36:56     INFO - run@chrome://mochikit/content/browser-test.js:1726:9
[task 2024-06-12T15:36:56.226Z] 15:36:56     INFO - Rejection date: Wed Jun 12 2024 15:36:55 GMT+0000 (Coordinated Universal Time) - false == true - {"filename":"resource://testing-common/PromiseTestUtils.sys.mjs","name":"assertNoUncaughtRejections","sourceId":616,"lineNumber":266,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"nextTest","sourceId":581,"lineNumber":774,"columnNumber":29,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"testScope/test_finish/<","sourceId":581,"lineNumber":1806,"columnNumber":25,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"run","sourceId":581,"lineNumber":1726,"columnNumber":9,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":null,"formattedStack":"run@chrome://mochikit/content/browser-test.js:1726:9\n","nativeSavedFrame":{}},"formattedStack":"testScope/test_finish/<@chrome://mochikit/content/browser-test.js:1806:25\nrun@chrome://mochikit/content/browser-test.js:1726:9\n","nativeSavedFrame":{}},"formattedStack":"nextTest@chrome://mochikit/content/browser-test.js:774:29\ntestScope/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\ntestScope/test_finish/<@chrome://mochikit/content/browser-test.js:1806:25\nrun@chrome://mochikit/content/browser-test.js:1726:9\n","nativeSavedFrame":{}}
[task 2024-06-12T15:36:56.226Z] 15:36:56     INFO - Stack trace:
[task 2024-06-12T15:36:56.226Z] 15:36:56     INFO - resource://testing-common/PromiseTestUtils.sys.mjs:assertNoUncaughtRejections:266
[task 2024-06-12T15:36:56.226Z] 15:36:56     INFO - chrome://mochikit/content/browser-test.js:nextTest:774
[task 2024-06-12T15:36:56.226Z] 15:36:56     INFO - chrome://mochikit/content/browser-test.js:testScope/test_finish/<:1806
[task 2024-06-12T15:36:56.226Z] 15:36:56     INFO - chrome://mochikit/content/browser-test.js:run:1726
[task 2024-06-12T15:36:56.227Z] 15:36:56     INFO - GECKO(1100) | JavaScript error: resource://testing-common/BrowserTestUtils.sys.mjs, line 1316: uncaught exception: SidebarFocused listener not removed before the end of test
[task 2024-06-12T15:36:56.229Z] 15:36:56     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-12T15:36:56.808Z] 15:36:56     INFO - GECKO(1100) | MEMORY STAT vsizeMaxContiguous not supported in this build configuration.
[task 2024-06-12T15:36:56.811Z] 15:36:56     INFO - GECKO(1100) | MEMORY STAT | vsize 11632MB | residentFast 586MB | heapAllocated 343MB
[task 2024-06-12T15:36:56.811Z] 15:36:56     INFO - TEST-OK | browser/components/sidebar/tests/browser/browser_sidebar_prefs.js | took 1667ms
[task 2024-06-12T15:36:56.841Z] 15:36:56     INFO - checking window state
[task 2024-06-12T15:36:56.841Z] 15:36:56     INFO - Not taking screenshot here: see the one that was previously logged
[task 2024-06-12T15:36:56.841Z] 15:36:56     INFO - TEST-UNEXPECTED-FAIL | browser/components/sidebar/tests/browser/browser_sidebar_prefs.js | Found an unexpected browser window at the end of test run - 
[task 2024-06-12T15:36:56.841Z] 15:36:56     INFO - GECKO(1100) | must wait for focus
[task 2024-06-12T15:36:56.987Z] 15:36:56     INFO - GECKO(1100) | Completed ShutdownLeaks collections in process 1100
[task 2024-06-12T15:36:56.988Z] 15:36:56     INFO - TEST-START | Shutdown
```