Bug: Intermittent browser/base/content/test/general/browser_documentnavigation.js | back focus with downloads panel open element matches (wanted:  got: downloadsHistory) - Got [object XULElement], expected [object XULFrameElement]
Status: RESOLVED
Priority: P5
Resolution: DUPLICATE
Created: 2021-12-21 23:07:18+00:00
Resolved: 2021-12-27 06:23:28+00:00

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

---
```
task 2021-12-21T22:35:50.777Z] 22:35:50     INFO - TEST-START | browser/base/content/test/general/browser_documentnavigation.js
[task 2021-12-21T22:35:58.972Z] 22:35:58     INFO - TEST-INFO | started process screentopng
[task 2021-12-21T22:35:59.291Z] 22:35:59     INFO - TEST-INFO | screentopng: exit 0
[task 2021-12-21T22:35:59.293Z] 22:35:59     INFO - Buffered messages logged at 22:35:50
[task 2021-12-21T22:35:59.293Z] 22:35:59     INFO - Entering test bound 
[task 2021-12-21T22:35:59.293Z] 22:35:59     INFO - Buffered messages logged at 22:35:51
[task 2021-12-21T22:35:59.294Z] 22:35:59     INFO - Console message: [JavaScript Warning: "This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use “<!DOCTYPE html>”." {file: "data:text/html,<html id='html1'><body id='body1'><button id='button1'>Tab 1</button></body></html>" line: 0}]
[task 2021-12-21T22:35:59.294Z] 22:35:59     INFO - Buffered messages logged at 22:35:53
[task 2021-12-21T22:35:59.294Z] 22:35:59     INFO - TEST-PASS | browser/base/content/test/general/browser_documentnavigation.js | expected element html1 was found - 
[task 2021-12-21T22:35:59.294Z] 22:35:59     INFO - TEST-PASS | browser/base/content/test/general/browser_documentnavigation.js | basic focus content page child focus matches - 
[task 2021-12-21T22:35:59.294Z] 22:35:59     INFO - TEST-PASS | browser/base/content/test/general/browser_documentnavigation.js | basic focus content page document matches - 
[task 2021-12-21T22:35:59.294Z] 22:35:59     INFO - TEST-PASS | browser/base/content/test/general/browser_documentnavigation.js | basic focus content page element matches (wanted:  got: ) - 
[task 2021-12-21T22:35:59.294Z] 22:35:59     INFO - TEST-PASS | browser/base/content/test/general/browser_documentnavigation.js | basic focus content page urlbar document matches - 
[task 2021-12-21T22:35:59.295Z] 22:35:59     INFO - TEST-PASS | browser/base/content/test/general/browser_documentnavigation.js | basic focus content page urlbar element matches (wanted: urlbar-input got: urlbar-input) - 
[task 2021-12-21T22:35:59.295Z] 22:35:59     INFO - TEST-PASS | browser/base/content/test/general/browser_documentnavigation.js | expected element html1 was found - 
[task 2021-12-21T22:35:59.295Z] 22:35:59     INFO - Buffered messages logged at 22:35:54
[task 2021-12-21T22:35:59.295Z] 22:35:59     INFO - TEST-PASS | browser/base/content/test/general/browser_documentnavigation.js | basic focus content page with button focused child focus matches - 
[task 2021-12-21T22:35:59.295Z] 22:35:59     INFO - TEST-PASS | browser/base/content/test/general/browser_documentnavigation.js | basic focus content page with button focused document matches - 
[task 2021-12-21T22:35:59.295Z] 22:35:59     INFO - TEST-PASS | browser/base/content/test/general/browser_documentnavigation.js | basic focus content page with button focused element matches (wanted:  got: ) - 
[task 2021-12-21T22:35:59.295Z] 22:35:59     INFO - TEST-PASS | browser/base/content/test/general/browser_documentnavigation.js | basic focus content page with button focused urlbar document matches - 
[task 2021-12-21T22:35:59.296Z] 22:35:59     INFO - TEST-PASS | browser/base/content/test/general/browser_documentnavigation.js | basic focus content page with button focused urlbar element matches (wanted: urlbar-input got: urlbar-input) - 
[task 2021-12-21T22:35:59.296Z] 22:35:59     INFO - TEST-PASS | browser/base/content/test/general/browser_documentnavigation.js | expected element html1 was found - 
[task 2021-12-21T22:35:59.296Z] 22:35:59     INFO - TEST-PASS | browser/base/content/test/general/browser_documentnavigation.js | basic focus again content page with button focused child focus matches - 
[task 2021-12-21T22:35:59.296Z] 22:35:59     INFO - TEST-PASS | browser/base/content/test/general/browser_documentnavigation.js | basic focus again content page with button focused document matches - 
[task 2021-12-21T22:35:59.296Z] 22:35:59     INFO - TEST-PASS | browser/base/content/test/general/browser_documentnavigation.js | basic focus again content page with button focused element matches (wanted:  got: ) - 
[task 2021-12-21T22:35:59.296Z] 22:35:59     INFO - TEST-PASS | browser/base/content/test/general/browser_documentnavigation.js | basic focus again content page with button focused child root is focused - true == true - 
[task 2021-12-21T22:35:59.297Z] 22:35:59     INFO - Leaving test bound 
[task 2021-12-21T22:35:59.298Z] 22:35:59     INFO - Entering test bound 
[task 2021-12-21T22:35:59.300Z] 22:35:59     INFO - Console message: [JavaScript Warning: "This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use “<!DOCTYPE html>”." {file: "data:text/html,<html id='html2'><body id='body2'><button id='button2'>Tab 2</button></body></html>" line: 0}]
[task 2021-12-21T22:35:59.302Z] 22:35:59     INFO - TEST-PASS | browser/base/content/test/general/browser_documentnavigation.js | basic focus content page and second tab urlbar document matches - 
[task 2021-12-21T22:35:59.303Z] 22:35:59     INFO - TEST-PASS | browser/base/content/test/general/browser_documentnavigation.js | basic focus content page and second tab urlbar element matches (wanted: urlbar-input got: urlbar-input) - 
[task 2021-12-21T22:35:59.304Z] 22:35:59     INFO - Buffered messages logged at 22:35:55
<...>
[task 2021-12-21T22:35:59.338Z] 22:35:59     INFO - TEST-PASS | browser/base/content/test/general/browser_documentnavigation.js | focus with downloads panel open document matches - 
[task 2021-12-21T22:35:59.339Z] 22:35:59     INFO - TEST-PASS | browser/base/content/test/general/browser_documentnavigation.js | focus with downloads panel open element matches (wanted:  got: ) - 
[task 2021-12-21T22:35:59.340Z] 22:35:59     INFO - TEST-PASS | browser/base/content/test/general/browser_documentnavigation.js | focus downloads panel open urlbar document matches - 
[task 2021-12-21T22:35:59.341Z] 22:35:59     INFO - TEST-PASS | browser/base/content/test/general/browser_documentnavigation.js | focus downloads panel open urlbar element matches (wanted: urlbar-input got: urlbar-input) - 
[task 2021-12-21T22:35:59.342Z] 22:35:59     INFO - TEST-PASS | browser/base/content/test/general/browser_documentnavigation.js | expected element html1 was found - 
[task 2021-12-21T22:35:59.342Z] 22:35:59     INFO - TEST-PASS | browser/base/content/test/general/browser_documentnavigation.js | back focus with downloads panel open child focus matches - 
[task 2021-12-21T22:35:59.343Z] 22:35:59     INFO - TEST-PASS | browser/base/content/test/general/browser_documentnavigation.js | back focus with downloads panel open document matches - 
[task 2021-12-21T22:35:59.344Z] 22:35:59     INFO - Buffered messages finished
[task 2021-12-21T22:35:59.345Z] 22:35:59     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/general/browser_documentnavigation.js | back focus with downloads panel open element matches (wanted:  got: downloadsHistory) - Got [object XULElement], expected [object XULFrameElement]
[task 2021-12-21T22:35:59.345Z] 22:35:59     INFO - Stack trace:
[task 2021-12-21T22:35:59.345Z] 22:35:59     INFO - chrome://mochikit/content/browser-test.js:test_is:1403
[task 2021-12-21T22:35:59.346Z] 22:35:59     INFO - chrome://mochitests/content/browser/browser/base/content/test/general/browser_documentnavigation.js:expectFocusOnF6:106
[task 2021-12-21T22:35:59.347Z] 22:35:59     INFO - TEST-PASS | browser/base/content/test/general/browser_documentnavigation.js | back focus with downloads panel open document matches - 
[task 2021-12-21T22:35:59.348Z] 22:35:59     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-12-21T22:35:59.350Z] 22:35:59     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/general/browser_documentnavigation.js | back focus with downloads panel open element matches (wanted: downloadsHistory got: urlbar-input) - Got [object HTMLInputElement], expected [object XULElement]
[task 2021-12-21T22:35:59.350Z] 22:35:59     INFO - Stack trace:
[task 2021-12-21T22:35:59.350Z] 22:35:59     INFO - chrome://mochikit/content/browser-test.js:test_is:1403
[task 2021-12-21T22:35:59.351Z] 22:35:59     INFO - chrome://mochitests/content/browser/browser/base/content/test/general/browser_documentnavigation.js:expectFocusOnF6:106
[task 2021-12-21T22:35:59.352Z] 22:35:59     INFO - TEST-PASS | browser/base/content/test/general/browser_documentnavigation.js | back focus downloads panel open urlbar document matches - 
[task 2021-12-21T22:35:59.353Z] 22:35:59     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-12-21T22:35:59.354Z] 22:35:59     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/general/browser_documentnavigation.js | back focus downloads panel open urlbar element matches (wanted: urlbar-input got: ) - Got [object XULFrameElement], expected [object HTMLInputElement]
[task 2021-12-21T22:35:59.354Z] 22:35:59     INFO - Stack trace:
[task 2021-12-21T22:35:59.354Z] 22:35:59     INFO - chrome://mochikit/content/browser-test.js:test_is:1403
[task 2021-12-21T22:35:59.354Z] 22:35:59     INFO - chrome://mochitests/content/browser/browser/base/content/test/general/browser_documentnavigation.js:expectFocusOnF6:106
[task 2021-12-21T22:35:59.355Z] 22:35:59     INFO - Leaving test bound test_download_focus
[task 2021-12-21T22:35:59.356Z] 22:35:59     INFO - Entering test bound 
[task 2021-12-21T22:35:59.983Z] 22:35:59     INFO - Console message: [JavaScript Warning: "This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use “<!DOCTYPE html>”." {file: "data:text/html,<html id='html3'><body id='body3' contenteditable='true'><button id='button3'>Tab 3</button></body></html>" line: 0}]
[task 2021-12-21T22:36:00.023Z] 22:36:00     INFO - TEST-PASS | browser/base/content/test/general/browser_documentnavigation.js | expected element body3 was found - 
[task 2021-12-21T22:36:00.231Z] 22:36:00     INFO - TEST-PASS | browser/base/content/test/general/browser_documentnavigation.js | focus with contenteditable body child focus matches - 
[task 2021-12-21T22:36:00.232Z] 22:36:00     INFO - TEST-PASS | browser/base/content/test/general/browser_documentnavigation.js | focus with contenteditable body document matches - 
[task 2021-12-21T22:36:00.234Z] 22:36:00     INFO - TEST-PASS | browser/base/content/test/general/browser_documentnavigation.js | focus with contenteditable body element matches (wanted:  got: ) - 
[task 2021-12-21T22:36:00.322Z] 22:36:00     INFO - TEST-PASS | browser/base/content/test/general/browser_documentnavigation.js | focus with contenteditable body urlbar document matches - 
[task 2021-12-21T22:36:00.324Z] 22:36:00     INFO - TEST-PASS | browser/base/content/test/general/browser_documentnavigation.js | focus with contenteditable body urlbar element matches (wanted: urlbar-input got: urlbar-input) - 
[task 2021-12-21T22:36:00.350Z] 22:36:00     INFO - TEST-PASS | browser/base/content/test/general/browser_documentnavigation.js | expected element body3 was found - 
[task 2021-12-21T22:36:00.534Z] 22:36:00     INFO - TEST-PASS | browser/base/content/test/general/browser_documentnavigation.js | back focus with contenteditable body child focus matches - 
[task 2021-12-21T22:36:00.538Z] 22:36:00     INFO - TEST-PASS | browser/base/content/test/general/browser_documentnavigation.js | back focus with contenteditable body document matches - 
[task 2021-12-21T22:36:00.541Z] 22:36:00     INFO - TEST-PASS | browser/base/content/test/general/browser_documentnavigation.js | back focus with contenteditable body element matches (wanted:  got: ) - 
[task 2021-12-21T22:36:00.611Z] 22:36:00     INFO - TEST-PASS | browser/base/content/test/general/browser_documentnavigation.js | back focus with contenteditable body urlbar document matches - 
[task 2021-12-21T22:36:00.612Z] 22:36:00     INFO - TEST-PASS | browser/base/content/test/general/browser_documentnavigation.js | back focus with contenteditable body urlbar element matches (wanted: urlbar-input got: urlbar-input) - 
[task 2021-12-21T22:36:00.782Z] 22:36:00     INFO - Leaving test bound 
```