Bug: Intermittent browser/components/enterprisepolicies/tests/browser/browser_policy_block_set_desktop_background.js | Uncaught exception received from previously timed out test -popupshown listener on #contentAreaContextMenu not removed before the end of test
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2021-08-30 18:20:41+00:00
Resolved: 2021-09-28 17:02:13+00:00

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

---
```
[task 2021-08-30T17:36:36.906Z] 17:36:36     INFO - TEST-PASS | browser/components/enterprisepolicies/tests/browser/browser_policy_block_set_desktop_background.js | Engine is inactive at the start of the test - 
[task 2021-08-30T17:36:36.906Z] 17:36:36     INFO - Leaving test bound policies_headjs_startWithCleanSlate
[task 2021-08-30T17:36:36.906Z] 17:36:36     INFO - Entering test bound setup
[task 2021-08-30T17:36:36.906Z] 17:36:36     INFO - TEST-PASS | browser/components/enterprisepolicies/tests/browser/browser_policy_block_set_desktop_background.js | Sanity check the temporary file doesn't exist. - true == true - 
[task 2021-08-30T17:36:36.906Z] 17:36:36     INFO - Leaving test bound setup
[task 2021-08-30T17:36:36.907Z] 17:36:36     INFO - Entering test bound test_check_set_desktop_background
[task 2021-08-30T17:36:36.907Z] 17:36:36     INFO - Console message: [JavaScript Error: "TypeError: doc is null" {file: "resource:///actors/ContextMenuChild.jsm" line: 540}]
[task 2021-08-30T17:36:36.907Z] 17:36:36     INFO - handleEvent@resource:///actors/ContextMenuChild.jsm:540:9
[task 2021-08-30T17:36:36.907Z] 17:36:36     INFO - synthesizeMouseAtPoint@chrome://mochikit/content/tests/SimpleTest/EventUtils.js:628:32
[task 2021-08-30T17:36:36.907Z] 17:36:36     INFO - synthesizeMouse/<@resource://testing-common/BrowserTestUtilsChild.jsm:334:34
[task 2021-08-30T17:36:36.907Z] 17:36:36     INFO - wrapHandlingUserInput@resource://gre/modules/E10SUtils.jsm:924:7
[task 2021-08-30T17:36:36.907Z] 17:36:36     INFO - synthesizeMouse@resource://testing-common/BrowserTestUtilsChild.jsm:330:15
[task 2021-08-30T17:36:36.907Z] 17:36:36     INFO - receiveMessage@resource://testing-common/BrowserTestUtilsChild.jsm:149:21
[task 2021-08-30T17:36:36.907Z] 17:36:36     INFO - 
[task 2021-08-30T17:36:36.907Z] 17:36:36     INFO - Buffered messages finished
[task 2021-08-30T17:36:36.907Z] 17:36:36     INFO - TEST-UNEXPECTED-FAIL | browser/components/enterprisepolicies/tests/browser/browser_policy_block_set_desktop_background.js | Test timed out - 
[task 2021-08-30T17:36:36.907Z] 17:36:36     INFO - GECKO(2033) | console.log: "_cleanup from onBeforeAddons"
[task 2021-08-30T17:36:36.907Z] 17:36:36     INFO - GECKO(2033) | console.log: "_cleanup from onProfileAfterChange"
[task 2021-08-30T17:36:36.908Z] 17:36:36     INFO - GECKO(2033) | console.log: "_cleanup from onBeforeUIStartup"
[task 2021-08-30T17:36:36.908Z] 17:36:36     INFO - GECKO(2033) | console.log: "_cleanup from onAllWindowsRestored"
[task 2021-08-30T17:36:36.908Z] 17:36:36     INFO - TEST-PASS | browser/components/enterprisepolicies/tests/browser/browser_policy_block_set_desktop_background.js | Engine is inactive at the end of the test - 
[task 2021-08-30T17:36:36.908Z] 17:36:36     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-08-30T17:36:36.908Z] 17:36:36     INFO - TEST-UNEXPECTED-FAIL | browser/components/enterprisepolicies/tests/browser/browser_policy_block_set_desktop_background.js | Uncaught exception received from previously timed out test - popupshown listener on #contentAreaContextMenu not removed before the end of test
[task 2021-08-30T17:36:36.908Z] 17:36:36     INFO - GECKO(2033) | MEMORY STAT | vsize 402429MB | residentFast 446MB | heapAllocated 117MB
[task 2021-08-30T17:36:36.908Z] 17:36:36     INFO - TEST-OK | browser/components/enterprisepolicies/tests/browser/browser_policy_block_set_desktop_background.js | took 45077ms
[task 2021-08-30T17:36:36.909Z] 17:36:36     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-08-30T17:36:36.909Z] 17:36:36     INFO - TEST-UNEXPECTED-FAIL | browser/components/enterprisepolicies/tests/browser/browser_policy_block_set_desktop_background.js | Found a tab after previous test timed out: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3gwMDAsTBZbkNwAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAABNElEQVQ4y8WSsU0DURBE3yyWIaAJaqAAN4DPSL6AlIACKIEOyJEgRsIgOOkiInJqgAKowNg7BHdn7MOksNl+zZ//dvbDf5cAiklp22BdVtXdeTEpDYDB9m1VzU6OJuVp2NdEQCaI96fH2YHG4+mDduKYNMYINTcjcGbXzQVDEAphG0k48zUsajIbnAiMIXThpW8EICE0RAK4dvoKg9NIcTiQ589otyHOZLnwqK5nLwBFUZ4igc3iM0d1ff8CMC6mZ6Ihiaqq3gi1aUAnArD00SW1fq5OLBg0ymYmSZsR2/t4e/rGyCLW0sbp3oq+yTYqVgytQWui2FS7XYF7GFprY921T4CNQt8zr47dNzCkIX7y/jBtH+v+RGMQrc828W8pApnZbmEVQp/Ae7BlOy2ttib81/UFc+WRWEbjckIAAAAASUVORK5CYII= - 
[task 2021-08-30T17:36:36.909Z] 17:36:36     INFO - checking window state
[task 2021-08-30T17:36:36.909Z] 17:36:36     INFO - TEST-START | browser/components/enterprisepolicies/tests/browser/browser_policy_bookmarks.js
```