Bug: Intermittent browser/components/places/tests/browser/browser_library_warnOnOpen.js | Uncaught exception - InvalidStateError: XULPopupElement.activateItem: Menu is closed
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2022-01-25 14:35:13+00:00
Resolved: 2022-04-19 17:02:09+00:00

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

---
```
[task 2022-01-25T13:37:24.180Z] 13:37:24     INFO - TEST-START | browser/components/places/tests/browser/browser_library_warnOnOpen.js
[task 2022-01-25T13:37:24.202Z] 13:37:24     INFO - GECKO(7341) | must wait for load
[task 2022-01-25T13:37:24.290Z] 13:37:24     INFO - GECKO(7341) | must wait for focus
[task 2022-01-25T13:37:24.883Z] 13:37:24     INFO - TEST-INFO | started process screentopng
[task 2022-01-25T13:37:25.235Z] 13:37:25     INFO - TEST-INFO | screentopng: exit 0
[task 2022-01-25T13:37:25.239Z] 13:37:25     INFO - Buffered messages logged at 13:37:24
[task 2022-01-25T13:37:25.240Z] 13:37:25     INFO - Entering test bound setup
[task 2022-01-25T13:37:25.241Z] 13:37:25     INFO - TEST-PASS | browser/components/places/tests/browser/browser_library_warnOnOpen.js | Bookmark/History tree is shown - true == true - 
[task 2022-01-25T13:37:25.241Z] 13:37:25     INFO - TEST-PASS | browser/components/places/tests/browser/browser_library_warnOnOpen.js | Downloads are hidden - true == true - 
[task 2022-01-25T13:37:25.242Z] 13:37:25     INFO - TEST-PASS | browser/components/places/tests/browser/browser_library_warnOnOpen.js | Current view is shown - true == true - 
[task 2022-01-25T13:37:25.243Z] 13:37:25     INFO - Leaving test bound setup
[task 2022-01-25T13:37:25.244Z] 13:37:25     INFO - Entering test bound test_warnOnOpenFolder
[task 2022-01-25T13:37:25.251Z] 13:37:25     INFO - Pushed test folder into the bookmarks tree
[task 2022-01-25T13:37:25.252Z] 13:37:25     INFO - Got selection in the Library left pane
[task 2022-01-25T13:37:25.253Z] 13:37:25     INFO - Got bigFolder in the right pane
[task 2022-01-25T13:37:25.253Z] 13:37:25     INFO - TEST-PASS | browser/components/places/tests/browser/browser_library_warnOnOpen.js | Expected dialog was shown when attempting to open folder with lots of links - true == true - 
[task 2022-01-25T13:37:25.254Z] 13:37:25     INFO - Leaving test bound test_warnOnOpenFolder
[task 2022-01-25T13:37:25.255Z] 13:37:25     INFO - Entering test bound test_warnOnOpenLinks
[task 2022-01-25T13:37:25.256Z] 13:37:25     INFO - Pushed test folder into the bookmarks tree
[task 2022-01-25T13:37:25.257Z] 13:37:25     INFO - Got selection in the Library left pane
[task 2022-01-25T13:37:25.258Z] 13:37:25     INFO - Context menu opened as expected
[task 2022-01-25T13:37:25.258Z] 13:37:25     INFO - Buffered messages finished
[task 2022-01-25T13:37:25.266Z] 13:37:25     INFO - TEST-UNEXPECTED-FAIL | browser/components/places/tests/browser/browser_library_warnOnOpen.js | Uncaught exception - InvalidStateError: XULPopupElement.activateItem: Menu is closed
[task 2022-01-25T13:37:25.267Z] 13:37:25     INFO - Stack trace:
[task 2022-01-25T13:37:25.267Z] 13:37:25     INFO - test_warnOnOpenLinks@chrome://mochitests/content/browser/browser/components/places/tests/browser/browser_library_warnOnOpen.js:132:17
[task 2022-01-25T13:37:25.269Z] 13:37:25     INFO - Leaving test bound test_warnOnOpenLinks
[task 2022-01-25T13:37:25.270Z] 13:37:25     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-01-25T13:37:25.272Z] 13:37:25     INFO - TEST-UNEXPECTED-FAIL | browser/components/places/tests/browser/browser_library_warnOnOpen.js | A promise chain failed to handle a rejection: common-dialog-loaded observer not removed before the end of test - stack: (No stack available.)
[task 2022-01-25T13:37:25.273Z] 13:37:25     INFO - Rejection date: Tue Jan 25 2022 13:37:25 GMT+0000 (Coordinated Universal Time) - false == true - JS frame :: resource://testing-common/PromiseTestUtils.jsm :: assertNoUncaughtRejections :: line 271
[task 2022-01-25T13:37:25.274Z] 13:37:25     INFO - Stack trace:
[task 2022-01-25T13:37:25.275Z] 13:37:25     INFO - resource://testing-common/PromiseTestUtils.jsm:assertNoUncaughtRejections:271
[task 2022-01-25T13:37:25.276Z] 13:37:25     INFO - chrome://mochikit/content/browser-test.js:nextTest:625
[task 2022-01-25T13:37:25.277Z] 13:37:25     INFO - GECKO(7341) | JavaScript error: resource://testing-common/PromiseTestUtils.jsm, line 120: uncaught exception: common-dialog-loaded observer not removed before the end of test
[task 2022-01-25T13:37:25.278Z] 13:37:25     INFO - Console message: [JavaScript Error: "uncaught exception: common-dialog-loaded observer not removed before the end of test" {file: "resource://testing-common/PromiseTestUtils.jsm" line: 120}]
[task 2022-01-25T13:37:25.280Z] 13:37:25     INFO - GECKO(7341) | MEMORY STAT | vsize 12169MB | residentFast 659MB | heapAllocated 456MB
[task 2022-01-25T13:37:25.281Z] 13:37:25     INFO - TEST-OK | browser/components/places/tests/browser/browser_library_warnOnOpen.js | took 890ms
[task 2022-01-25T13:37:25.282Z] 13:37:25     INFO - checking window state
[task 2022-01-25T13:37:25.284Z] 13:37:25     INFO - GECKO(7341) | must wait for focus
[task 2022-01-25T13:37:25.285Z] 13:37:25     INFO - TEST-START | browser/components/places/tests/browser/browser_markPageAsFollowedLink.js
```