Bug: Intermittent browser/base/content/test/contextMenu/browser_contextmenu.js | Uncaught exception - [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIController.doCommand]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location:
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2021-08-05 18:20:20+00:00
Resolved: 2021-08-31 17:05:54+00:00

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

---
```
[task 2021-08-05T17:19:20.795Z] 17:19:20     INFO - TEST-PASS | browser/base/content/test/contextMenu/browser_contextmenu.js | checking if popup is closed - 
[task 2021-08-05T17:19:20.795Z] 17:19:20     INFO - Moved focus to #test-link
[task 2021-08-05T17:19:20.795Z] 17:19:20     INFO - Popup Shown
[task 2021-08-05T17:19:20.795Z] 17:19:20     INFO - Buffered messages finished
[task 2021-08-05T17:19:20.795Z] 17:19:20     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/contextMenu/browser_contextmenu.js | Uncaught exception - [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIController.doCommand]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: chrome://mochitests/content/browser/browser/base/content/test/contextMenu/browser_contextmenu.js :: postCheckContextMenuFn :: line 1216"  data: no]
[task 2021-08-05T17:19:20.795Z] 17:19:20     INFO - Stack trace:
[task 2021-08-05T17:19:20.796Z] 17:19:20     INFO - postCheckContextMenuFn@chrome://mochitests/content/browser/browser/base/content/test/contextMenu/browser_contextmenu.js:1216:10
[task 2021-08-05T17:19:20.796Z] 17:19:20     INFO - test_contextmenu@chrome://mochitests/content/browser/browser/base/content/test/contextMenu/contextmenu_common.js:473:19
[task 2021-08-05T17:19:20.796Z] 17:19:20     INFO - Leaving test bound test_copylinkcommand
[task 2021-08-05T17:19:20.796Z] 17:19:20     INFO - Entering test bound test_pagemenu
[task 2021-08-05T17:19:20.796Z] 17:19:20     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-08-05T17:19:20.796Z] 17:19:20     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/contextMenu/browser_contextmenu.js | checking if popup is closed - Got open, expected closed
[task 2021-08-05T17:19:20.796Z] 17:19:20     INFO - Stack trace:
[task 2021-08-05T17:19:20.797Z] 17:19:20     INFO - chrome://mochikit/content/browser-test.js:test_is:1327
[task 2021-08-05T17:19:20.797Z] 17:19:20     INFO - chrome://mochitests/content/browser/browser/base/content/test/contextMenu/contextmenu_common.js:test_contextmenu:361
[task 2021-08-05T17:19:20.797Z] 17:19:20     INFO - chrome://mochitests/content/browser/browser/base/content/test/contextMenu/browser_contextmenu.js:test_pagemenu:1243
[task 2021-08-05T17:19:20.797Z] 17:19:20     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest/<:1064
[task 2021-08-05T17:19:20.797Z] 17:19:20     INFO - Moved focus to #test-pagemenu
[task 2021-08-05T17:20:02.912Z] 17:20:02     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-08-05T17:20:02.912Z] 17:20:02     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/contextMenu/browser_contextmenu.js | Test timed out - 
[task 2021-08-05T17:20:02.931Z] 17:20:02     INFO - GECKO(4372) | MEMORY STAT | vsize 752MB | vsizeMaxContiguous 762MB | residentFast 204MB | heapAllocated 86MB
[task 2021-08-05T17:20:02.932Z] 17:20:02     INFO - TEST-OK | browser/base/content/test/contextMenu/browser_contextmenu.js | took 45030ms
```