Bug: Intermittent TV browser/components/downloads/test/browser/browser_downloads_panel_focus.js | the downloads list should have focus - Got null, expected [object XULElement]
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2021-12-21 20:05:07+00:00
Resolved: 2022-01-18 17:02:51+00:00

**Filed by:** nerli [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=362035533&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/IGSYK4vhTBOJvm75dnR_cg/runs/3/artifacts/public/logs/live_backing.log
**Reftest URL:** https://hg.mozilla.org/mozilla-central/raw-file/tip/layout/tools/reftest/reftest-analyzer.xhtml#logurl=https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/IGSYK4vhTBOJvm75dnR_cg/runs/3/artifacts/public/logs/live_backing.log&only_show_unexpected=1

---
```
[task 2021-12-21T18:25:32.735Z] 18:25:32     INFO - TEST-START | browser/components/downloads/test/browser/browser_downloads_panel_focus.js
[task 2021-12-21T18:25:33.313Z] 18:25:33     INFO - TEST-INFO | started process screentopng
[task 2021-12-21T18:25:33.632Z] 18:25:33     INFO - TEST-INFO | screentopng: exit 0
[task 2021-12-21T18:25:33.639Z] 18:25:33     INFO - Buffered messages logged at 18:25:32
[task 2021-12-21T18:25:33.639Z] 18:25:33     INFO - Entering test bound setup
[task 2021-12-21T18:25:33.639Z] 18:25:33     INFO - TEST-PASS | browser/components/downloads/test/browser/browser_downloads_panel_focus.js | At the start of the test, there should be 0 downloads - 
[task 2021-12-21T18:25:33.639Z] 18:25:33     INFO - Leaving test bound setup
[task 2021-12-21T18:25:33.639Z] 18:25:33     INFO - Entering test bound test_focus
[task 2021-12-21T18:25:33.639Z] 18:25:33     INFO - creating a download and setting it to in progress
[task 2021-12-21T18:25:33.639Z] 18:25:33     INFO - waiting for the panel to open
[task 2021-12-21T18:25:33.639Z] 18:25:33     INFO - TEST-PASS | browser/components/downloads/test/browser/browser_downloads_panel_focus.js | there should be exactly one download listed - 
[task 2021-12-21T18:25:33.639Z] 18:25:33     INFO - TEST-PASS | browser/components/downloads/test/browser/browser_downloads_panel_focus.js | the downloads list should have focus - 
[task 2021-12-21T18:25:33.639Z] 18:25:33     INFO - TEST-PASS | browser/components/downloads/test/browser/browser_downloads_panel_focus.js | the focused item should be the only download in the list - 
[task 2021-12-21T18:25:33.639Z] 18:25:33     INFO - closing the panel and creating a second download
[task 2021-12-21T18:25:33.639Z] 18:25:33     INFO - Buffered messages logged at 18:25:33
[task 2021-12-21T18:25:33.639Z] 18:25:33     INFO - waiting for the panel to open after starting the second download
[task 2021-12-21T18:25:33.639Z] 18:25:33     INFO - TEST-PASS | browser/components/downloads/test/browser/browser_downloads_panel_focus.js | there should be two downloads listed - 
[task 2021-12-21T18:25:33.639Z] 18:25:33     INFO - TEST-PASS | browser/components/downloads/test/browser/browser_downloads_panel_focus.js | the downloads list should have focus - 
[task 2021-12-21T18:25:33.640Z] 18:25:33     INFO - TEST-PASS | browser/components/downloads/test/browser/browser_downloads_panel_focus.js | the focused item should be the first download in the list - 
[task 2021-12-21T18:25:33.640Z] 18:25:33     INFO - closing the panel and creating a third download
[task 2021-12-21T18:25:33.640Z] 18:25:33     INFO - waiting for the panel to open after starting the third download
[task 2021-12-21T18:25:33.641Z] 18:25:33     INFO - TEST-PASS | browser/components/downloads/test/browser/browser_downloads_panel_focus.js | there should be three downloads listed - 
[task 2021-12-21T18:25:33.641Z] 18:25:33     INFO - Buffered messages finished
[task 2021-12-21T18:25:33.642Z] 18:25:33     INFO - TEST-UNEXPECTED-FAIL | browser/components/downloads/test/browser/browser_downloads_panel_focus.js | the downloads list should have focus - Got null, expected [object XULElement]
[task 2021-12-21T18:25:33.642Z] 18:25:33     INFO - Stack trace:
[task 2021-12-21T18:25:33.642Z] 18:25:33     INFO - chrome://mochikit/content/browser-test.js:test_is:1403
[task 2021-12-21T18:25:33.642Z] 18:25:33     INFO - chrome://mochitests/content/browser/browser/components/downloads/test/browser/browser_downloads_panel_focus.js:test_focus:98
[task 2021-12-21T18:25:33.643Z] 18:25:33     INFO - TEST-PASS | browser/components/downloads/test/browser/browser_downloads_panel_focus.js | the focused item should be the first download in the list - 
[task 2021-12-21T18:25:33.652Z] 18:25:33     INFO - Leaving test bound test_focus
[task 2021-12-21T18:25:33.652Z] 18:25:33     INFO - removing /tmp/dm-ui-test.file
[task 2021-12-21T18:25:33.653Z] 18:25:33     INFO - Resetting downloads and closing downloads panel
[task 2021-12-21T18:25:33.653Z] 18:25:33     INFO - GECKO(1899) | must wait for focus
[task 2021-12-21T18:25:33.653Z] 18:25:33     INFO - GECKO(1899) | MEMORY STAT vsizeMaxContiguous not supported in this build configuration.
[task 2021-12-21T18:25:33.653Z] 18:25:33     INFO - GECKO(1899) | MEMORY STAT | vsize 11433MB | residentFast 483MB | heapAllocated 278MB
[task 2021-12-21T18:25:33.654Z] 18:25:33     INFO - TEST-OK | browser/components/downloads/test/browser/browser_downloads_panel_focus.js | took 633ms
[task 2021-12-21T18:25:33.654Z] 18:25:33     INFO - checking window state
[task 2021-12-21T18:25:33.655Z] 18:25:33     INFO - GECKO(1899) | Completed ShutdownLeaks collections in process 1899
```