Bug: Intermittent browser/components/sidebar/tests/browser/browser_adopt_sidebar_from_opener.js | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: FIXED
Created: 2024-06-11 22:32:25+00:00
Resolved: 2024-06-17 06:35:04+00:00

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

---
```
[task 2024-06-11T21:24:59.730Z] 21:24:59     INFO - TEST-START | browser/components/sidebar/tests/browser/browser_adopt_sidebar_from_opener.js
[task 2024-06-11T21:25:00.134Z] 21:25:00     INFO - GECKO(1100) | 1718141100132	Marionette	TRACE	Received observer notification browser-delayed-startup-finished
[task 2024-06-11T21:25:00.171Z] 21:25:00     INFO - TEST-INFO | started process screentopng
[task 2024-06-11T21:25:00.526Z] 21:25:00     INFO - TEST-INFO | screentopng: exit 0
[task 2024-06-11T21:25:00.527Z] 21:25:00     INFO - Buffered messages logged at 21:24:59
[task 2024-06-11T21:25:00.528Z] 21:25:00     INFO - Entering setup bound 
[task 2024-06-11T21:25:00.529Z] 21:25:00     INFO - Leaving setup bound 
[task 2024-06-11T21:25:00.530Z] 21:25:00     INFO - Entering test bound test_adopt_from_window
[task 2024-06-11T21:25:00.533Z] 21:25:00     INFO - Buffered messages finished
[task 2024-06-11T21:25:00.533Z] 21:25:00     INFO - TEST-UNEXPECTED-FAIL | browser/components/sidebar/tests/browser/browser_adopt_sidebar_from_opener.js | Uncaught exception in test bound test_adopt_from_window - at chrome://mochitests/content/browser/browser/components/sidebar/tests/browser/browser_adopt_sidebar_from_opener.js:22 - TypeError: can't access property "click", button is undefined
[task 2024-06-11T21:25:00.533Z] 21:25:00     INFO - Stack trace:
[task 2024-06-11T21:25:00.533Z] 21:25:00     INFO - test_adopt_from_window@chrome://mochitests/content/browser/browser/components/sidebar/tests/browser/browser_adopt_sidebar_from_opener.js:22:3
[task 2024-06-11T21:25:00.534Z] 21:25:00     INFO - async*handleTask@chrome://mochikit/content/browser-test.js:1139:26
[task 2024-06-11T21:25:00.534Z] 21:25:00     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1211:18
[task 2024-06-11T21:25:00.534Z] 21:25:00     INFO - async*Tester_execTest@chrome://mochikit/content/browser-test.js:1353:14
[task 2024-06-11T21:25:00.534Z] 21:25:00     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1122:14
[task 2024-06-11T21:25:00.534Z] 21:25:00     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13
[task 2024-06-11T21:25:00.534Z] 21:25:00     INFO - Leaving test bound test_adopt_from_window
[task 2024-06-11T21:25:00.534Z] 21:25:00     INFO - Not taking screenshot here: see the one that was previously logged
[task 2024-06-11T21:25:00.535Z] 21:25:00     INFO - TEST-UNEXPECTED-FAIL | browser/components/sidebar/tests/browser/browser_adopt_sidebar_from_opener.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-11T21:25:00.535Z] 21:25:00     INFO - ensureDOMPromiseRejectionsProcessed@resource://testing-common/PromiseTestUtils.sys.mjs:115:17
[task 2024-06-11T21:25:00.536Z] 21:25:00     INFO - nextTest@chrome://mochikit/content/browser-test.js:773:29
[task 2024-06-11T21:25:00.536Z] 21:25:00     INFO - testScope/test_finish/<@chrome://mochikit/content/browser-test.js:1806:25
[task 2024-06-11T21:25:00.536Z] 21:25:00     INFO - run@chrome://mochikit/content/browser-test.js:1726:9
[task 2024-06-11T21:25:00.536Z] 21:25:00     INFO - Rejection date: Tue Jun 11 2024 21:25:00 GMT+0000 (Coordinated Universal Time) - false == true - {"filename":"resource://testing-common/PromiseTestUtils.sys.mjs","name":"assertNoUncaughtRejections","sourceId":614,"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":null,"caller":{"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":"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-11T21:25:00.536Z] 21:25:00     INFO - Stack trace:
[task 2024-06-11T21:25:00.536Z] 21:25:00     INFO - resource://testing-common/PromiseTestUtils.sys.mjs:assertNoUncaughtRejections:266
[task 2024-06-11T21:25:00.536Z] 21:25:00     INFO - chrome://mochikit/content/browser-test.js:nextTest:774
[task 2024-06-11T21:25:00.536Z] 21:25:00     INFO - chrome://mochikit/content/browser-test.js:testScope/test_finish/<:1806
[task 2024-06-11T21:25:00.536Z] 21:25:00     INFO - chrome://mochikit/content/browser-test.js:run:1726
[task 2024-06-11T21:25:00.537Z] 21:25:00     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-11T21:25:00.538Z] 21:25:00     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-11T21:25:00.694Z] 21:25:00     INFO - GECKO(1100) | MEMORY STAT | vsize 11676MB | residentFast 581MB | heapAllocated 325MB
[task 2024-06-11T21:25:00.696Z] 21:25:00     INFO - TEST-OK | browser/components/sidebar/tests/browser/browser_adopt_sidebar_from_opener.js | took 964ms
[task 2024-06-11T21:25:00.714Z] 21:25:00     INFO - checking window state
[task 2024-06-11T21:25:00.714Z] 21:25:00     INFO - Not taking screenshot here: see the one that was previously logged
[task 2024-06-11T21:25:00.714Z] 21:25:00     INFO - TEST-UNEXPECTED-FAIL | browser/components/sidebar/tests/browser/browser_adopt_sidebar_from_opener.js | Found an unexpected browser window at the end of test run - 
[task 2024-06-11T21:25:00.715Z] 21:25:00     INFO - GECKO(1100) | must wait for focus
[task 2024-06-11T21:25:00.858Z] 21:25:00     INFO - GECKO(1100) | Completed ShutdownLeaks collections in process 1100
[task 2024-06-11T21:25:00.860Z] 21:25:00     INFO - TEST-START | Shutdown
[task 2024-06-11T21:25:00.861Z] 21:25:00     INFO - Browser Chrome Test Summary
[task 2024-06-11T21:25:00.862Z] 21:25:00     INFO - Passed:  14
[task 2024-06-11T21:25:00.862Z] 21:25:00     INFO - Failed:  3
[task 2024-06-11T21:25:00.863Z] 21:25:00     INFO - Todo:    0
[task 2024-06-11T21:25:00.864Z] 21:25:00     INFO - Mode:    e10s
[task 2024-06-11T21:25:00.864Z] 21:25:00     INFO - *** End BrowserChrome Test Results ***
[task 2024-06-11T21:25:00.899Z] 21:25:00     INFO - GECKO(1100) | Exiting due to channel error.
[task 2024-06-11T21:25:00.907Z] 21:25:00     INFO - GECKO(1100) | Exiting due to channel error.
[task 2024-06-11T21:25:00.908Z] 21:25:00     INFO - GECKO(1100) | Exiting due to channel error.
[task 2024-06-11T21:25:00.909Z] 21:25:00     INFO - GECKO(1100) | Exiting due to channel error.
[task 2024-06-11T21:25:00.910Z] 21:25:00     INFO - GECKO(1100) | Exiting due to channel error.
[task 2024-06-11T21:25:00.911Z] 21:25:00     INFO - GECKO(1100) | Exiting due to channel error.
[task 2024-06-11T21:25:00.912Z] 21:25:00     INFO - GECKO(1100) | Exiting due to channel error.
[task 2024-06-11T21:25:00.953Z] 21:25:00     INFO - TEST-INFO | Main app process: exit 0
[task 2024-06-11T21:25:00.955Z] 21:25:00     INFO - runtests.py | Application ran for: 0:00:16.258174
```