Bug: Intermittent browser/components/places/tests/browser/browser_check_correct_controllers.js | Uncaught exception - at chrome://mochikit/content/tests/SimpleTest/EventUtils.js:561 - TypeError: aTarget is undefined
Status: RESOLVED
Priority: P5
Resolution: DUPLICATE
Created: 2022-01-18 13:44:18+00:00
Resolved: 2022-04-28 11:32:21+00:00

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

---
```
[task 2022-01-18T13:02:52.140Z] 13:02:52     INFO - TEST-START | browser/components/places/tests/browser/browser_check_correct_controllers.js
[task 2022-01-18T13:02:52.160Z] 13:02:52     INFO - TEST-INFO | started process screencapture
[task 2022-01-18T13:02:52.274Z] 13:02:52     INFO - TEST-INFO | screencapture: exit 0
[task 2022-01-18T13:02:52.274Z] 13:02:52     INFO - Buffered messages logged at 13:02:52
[task 2022-01-18T13:02:52.274Z] 13:02:52     INFO - Entering test bound test
[task 2022-01-18T13:02:52.274Z] 13:02:52     INFO - TEST-PASS | browser/components/places/tests/browser/browser_check_correct_controllers.js | The sidebar should be hidden - 
[task 2022-01-18T13:02:52.274Z] 13:02:52     INFO - TEST-PASS | browser/components/places/tests/browser/browser_check_correct_controllers.js | tree controller was returned - 
[task 2022-01-18T13:02:52.274Z] 13:02:52     INFO - Buffered messages finished
[task 2022-01-18T13:02:52.275Z] 13:02:52     INFO - TEST-UNEXPECTED-FAIL | browser/components/places/tests/browser/browser_check_correct_controllers.js | Uncaught exception - at chrome://mochikit/content/tests/SimpleTest/EventUtils.js:561 - TypeError: aTarget is undefined
[task 2022-01-18T13:02:52.275Z] 13:02:52     INFO - Stack trace:
[task 2022-01-18T13:02:52.275Z] 13:02:52     INFO - synthesizeMouse@chrome://mochikit/content/tests/SimpleTest/EventUtils.js:561:14
[task 2022-01-18T13:02:52.275Z] 13:02:52     INFO - test@chrome://mochitests/content/browser/browser/components/places/tests/browser/browser_check_correct_controllers.js:54:14
[task 2022-01-18T13:02:52.275Z] 13:02:52     INFO - Leaving test bound test
[task 2022-01-18T13:02:52.275Z] 13:02:52     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-01-18T13:02:52.275Z] 13:02:52     INFO - TEST-UNEXPECTED-FAIL | browser/components/places/tests/browser/browser_check_correct_controllers.js | A promise chain failed to handle a rejection: popupshown listener on #placesContext not removed before the end of test - stack: (No stack available.)
[task 2022-01-18T13:02:52.275Z] 13:02:52     INFO - Rejection date: Tue Jan 18 2022 13:02:52 GMT+0000 (Greenwich Mean Time) - false == true - JS frame :: resource://testing-common/PromiseTestUtils.jsm :: assertNoUncaughtRejections :: line 271
[task 2022-01-18T13:02:52.275Z] 13:02:52     INFO - Stack trace:
[task 2022-01-18T13:02:52.275Z] 13:02:52     INFO - resource://testing-common/PromiseTestUtils.jsm:assertNoUncaughtRejections:271
[task 2022-01-18T13:02:52.275Z] 13:02:52     INFO - chrome://mochikit/content/browser-test.js:nextTest:625
[task 2022-01-18T13:02:52.276Z] 13:02:52     INFO - GECKO(1786) | JavaScript error: resource://testing-common/PromiseTestUtils.jsm, line 120: uncaught exception: popupshown listener on #placesContext not removed before the end of test
[task 2022-01-18T13:02:52.276Z] 13:02:52     INFO - Console message: [JavaScript Error: "uncaught exception: popupshown listener on #placesContext not removed before the end of test" {file: "resource://testing-common/PromiseTestUtils.jsm" line: 120}]
[task 2022-01-18T13:02:52.276Z] 13:02:52     INFO - GECKO(1786) | MEMORY STAT | vsize 410855MB | residentFast 603MB | heapAllocated 261MB
[task 2022-01-18T13:02:52.276Z] 13:02:52     INFO - TEST-OK | browser/components/places/tests/browser/browser_check_correct_controllers.js | took 36ms
[task 2022-01-18T13:02:52.276Z] 13:02:52     INFO - checking window state
[task 2022-01-18T13:02:52.276Z] 13:02:52     INFO - TEST-START | browser/components/places/tests/browser/browser_click_bookmarks_on_toolbar.js
```