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:42+00:00
Resolved: 2024-07-15 12:04:25+00:00

**Filed by:** pstanciu [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
[task 2024-06-18T16:09:37.314Z] 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: popupshown listener not removed before the end of test - stack: waitForEvent/</<@resource://testing-common/BrowserTestUtils.sys.mjs:1316:15
[task 2024-06-18T16:09:37.314Z] 16:09:37     INFO - ensureDOMPromiseRejectionsProcessed@resource://testing-common/PromiseTestUtils.sys.mjs:115:17
[task 2024-06-18T16:09:37.315Z] 16:09:37     INFO - nextTest@chrome://mochikit/content/browser-test.js:773:29
[task 2024-06-18T16:09:37.315Z] 16:09:37     INFO - testScope/test_finish/<@chrome://mochikit/content/browser-test.js:1806:25
[task 2024-06-18T16:09:37.315Z] 16:09:37     INFO - run@chrome://mochikit/content/browser-test.js:1726:9
[task 2024-06-18T16:09:37.315Z] 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.315Z] 16:09:37     INFO - Stack trace:
[task 2024-06-18T16:09:37.315Z] 16:09:37     INFO - resource://testing-common/PromiseTestUtils.sys.mjs:assertNoUncaughtRejections:266
[task 2024-06-18T16:09:37.315Z] 16:09:37     INFO - chrome://mochikit/content/browser-test.js:nextTest:774
[task 2024-06-18T16:09:37.315Z] 16:09:37     INFO - chrome://mochikit/content/browser-test.js:testScope/test_finish/<:1806
[task 2024-06-18T16:09:37.315Z] 16:09:37     INFO - chrome://mochikit/content/browser-test.js:run:1726
[task 2024-06-18T16:09:37.316Z] 16:09:37     INFO - GECKO(8732) | JavaScript error: resource://testing-common/BrowserTestUtils.sys.mjs, line 1316: uncaught exception: popuphidden listener on #contentAreaContextMenu not removed before the end of test
[task 2024-06-18T16:09:37.316Z] 16:09:37     INFO - GECKO(8732) | JavaScript error: resource://testing-common/BrowserTestUtils.sys.mjs, line 1316: uncaught exception: popupshown listener not removed before the end of test
[task 2024-06-18T16:09:37.317Z] 16:09:37     INFO - Console message: [JavaScript Error: "uncaught exception: popuphidden listener on #contentAreaContextMenu not removed before the end of test" {file: "resource://testing-common/BrowserTestUtils.sys.mjs" line: 1316}]
[task 2024-06-18T16:09:37.318Z] 16:09:37     INFO - Console message: [JavaScript Error: "uncaught exception: popupshown listener not removed before the end of test" {file: "resource://testing-common/BrowserTestUtils.sys.mjs" line: 1316}]
[task 2024-06-18T16:09:37.637Z] 16:09:37     INFO - GECKO(8732) | MEMORY STAT | vsize 19430862MB | vsizeMaxContiguous 65228931MB | residentFast 970MB
[task 2024-06-18T16:09:37.639Z] 16:09:37     INFO - TEST-OK | browser/components/pocket/test/browser_pocket_context_menu_action.js | took 1669ms
[task 2024-06-18T16:09:37.640Z] 16:09:37     INFO - Not taking screenshot here: see the one that was previously logged
[task 2024-06-18T16:09:37.641Z] 16:09:37     INFO - TEST-UNEXPECTED-FAIL | browser/components/pocket/test/browser_pocket_context_menu_action.js | Found an unexpected tab at the end of test run: https://example.com/browser/browser/components/pocket/test/test.html - 
[task 2024-06-18T16:09:37.701Z] 16:09:37     INFO - checking window state
[task 2024-06-18T16:09:37.732Z] 16:09:37     INFO - TEST-START | browser/components/pocket/test/browser_pocket_home_panel.js

```