Bug: Intermittent browser/components/pocket/test/browser_pocket_context_menu_action.js | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2024-06-18 17:16:33+00:00
Resolved: 2024-07-15 12:01:55+00:00

**Filed by:** nerli [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=462962932&repo=mozilla-beta
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/O-IHW2UJQxOLaCts7Whqqg/runs/0/artifacts/public/logs/live_backing.log

---
```
[task 2024-06-18T16:09:35.970Z] 16:09:35     INFO - TEST-START | browser/components/pocket/test/browser_pocket_context_menu_action.js
[task 2024-06-18T16:09:37.135Z] 16:09:37     INFO - TEST-INFO | started process screenshot
[task 2024-06-18T16:09:37.276Z] 16:09:37     INFO - TEST-INFO | screenshot: exit 0
[task 2024-06-18T16:09:37.290Z] 16:09:37     INFO - Buffered messages logged at 16:09:35
[task 2024-06-18T16:09:37.291Z] 16:09:37     INFO - Entering test bound 
[task 2024-06-18T16:09:37.291Z] 16:09:37     INFO - Buffered messages logged at 16:09:36
[task 2024-06-18T16:09:37.293Z] 16:09:37     INFO - opening context menu
[task 2024-06-18T16:09:37.293Z] 16:09:37     INFO - Global property added while loading chrome://browser/content/nsContextMenu.js: screenshotsDisabled
[task 2024-06-18T16:09:37.294Z] 16:09:37     INFO - Global property added while loading chrome://browser/content/nsContextMenu.js: SCREENSHOT_BROWSER_COMPONENT
[task 2024-06-18T16:09:37.295Z] 16:09:37     INFO - Global property added while loading chrome://browser/content/nsContextMenu.js: REVEAL_PASSWORD_ENABLED
[task 2024-06-18T16:09:37.295Z] 16:09:37     INFO - Global property added while loading chrome://browser/content/nsContextMenu.js: TEXT_RECOGNITION_ENABLED
[task 2024-06-18T16:09:37.296Z] 16:09:37     INFO - Global property added while loading chrome://browser/content/nsContextMenu.js: STRIP_ON_SHARE_ENABLED
[task 2024-06-18T16:09:37.297Z] 16:09:37     INFO - Global property added while loading chrome://browser/content/nsContextMenu.js: QueryStringStripper
[task 2024-06-18T16:09:37.297Z] 16:09:37     INFO - Buffered messages logged at 16:09:37
[task 2024-06-18T16:09:37.298Z] 16:09:37     INFO - Console message: [JavaScript Warning: "initNSMouseEvent() is deprecated. Use the MouseEvent() constructor instead." {file: "chrome://browser/content/nsContextMenu.js" line: 87}]
[task 2024-06-18T16:09:37.298Z] 16:09:37     INFO - opening pocket panel
[task 2024-06-18T16:09:37.299Z] 16:09:37     INFO - Buffered messages finished
[task 2024-06-18T16:09:37.301Z] 16:09:37     INFO - TEST-UNEXPECTED-FAIL | browser/components/pocket/test/browser_pocket_context_menu_action.js | Uncaught exception in test bound  - InvalidStateError: XULPopupElement.activateItem: Popup is not open
[task 2024-06-18T16:09:37.301Z] 16:09:37     INFO - Stack trace:
[task 2024-06-18T16:09:37.301Z] 16:09:37     INFO - @chrome://mochitests/content/browser/browser/components/pocket/test/browser_pocket_context_menu_action.js:35:15
[task 2024-06-18T16:09:37.301Z] 16:09:37     INFO - async*handleTask@chrome://mochikit/content/browser-test.js:1139:26
[task 2024-06-18T16:09:37.301Z] 16:09:37     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1211:18
[task 2024-06-18T16:09:37.301Z] 16:09:37     INFO - Tester_execTest@chrome://mochikit/content/browser-test.js:1353:14
[task 2024-06-18T16:09:37.301Z] 16:09:37     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1128:14
[task 2024-06-18T16:09:37.301Z] 16:09:37     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13
[task 2024-06-18T16:09:37.302Z] 16:09:37     INFO - Leaving test bound 
[task 2024-06-18T16:09:37.302Z] 16:09:37     INFO - Not taking screenshot here: see the one that was previously logged
[task 2024-06-18T16:09:37.308Z] 16:09:37     INFO - TEST-UNEXPECTED-FAIL | browser/components/pocket/test/browser_pocket_context_menu_action.js | A promise chain failed to handle a rejection: popuphidden listener on #contentAreaContextMenu not removed before the end of test - stack: waitForEvent/</<@resource://testing-common/BrowserTestUtils.sys.mjs:1316:15
[task 2024-06-18T16:09:37.308Z] 16:09:37     INFO - ensureDOMPromiseRejectionsProcessed@resource://testing-common/PromiseTestUtils.sys.mjs:115:17
[task 2024-06-18T16:09:37.308Z] 16:09:37     INFO - nextTest@chrome://mochikit/content/browser-test.js:773:29
[task 2024-06-18T16:09:37.308Z] 16:09:37     INFO - testScope/test_finish/<@chrome://mochikit/content/browser-test.js:1806:25
[task 2024-06-18T16:09:37.308Z] 16:09:37     INFO - run@chrome://mochikit/content/browser-test.js:1726:9
[task 2024-06-18T16:09:37.308Z] 16:09:37     INFO - Rejection date: Tue Jun 18 2024 16:09:37 GMT+0000 (Coordinated Universal Time) - false == true - {"filename":"resource://testing-common/PromiseTestUtils.sys.mjs","name":"assertNoUncaughtRejections","sourceId":621,"lineNumber":266,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"nextTest","sourceId":587,"lineNumber":774,"columnNumber":29,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"testScope/test_finish/<","sourceId":587,"lineNumber":1806,"columnNumber":25,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"run","sourceId":587,"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-18T16:09:37.308Z] 16:09:37     INFO - Stack trace:
[task 2024-06-18T16:09:37.308Z] 16:09:37     INFO - resource://testing-common/PromiseTestUtils.sys.mjs:assertNoUncaughtRejections:266
[task 2024-06-18T16:09:37.308Z] 16:09:37     INFO - chrome://mochikit/content/browser-test.js:nextTest:774
[task 2024-06-18T16:09:37.308Z] 16:09:37     INFO - chrome://mochikit/content/browser-test.js:testScope/test_finish/<:1806
[task 2024-06-18T16:09:37.308Z] 16:09:37     INFO - chrome://mochikit/content/browser-test.js:run:1726
[task 2024-06-18T16:09:37.309Z] 16:09:37     INFO - Not taking screenshot here: see the one that was previously logged
```