Bug: Intermittent browser/components/aboutlogins/tests/browser/browser_openImportCSV.js | Uncaught exception - at chrome://<text>- TypeError: can't access property "getAttribute", dialog.shadowRoot.activeElement is null
Status: RESOLVED
Priority: P5
Resolution: DUPLICATE
Created: 2021-02-27 11:48:21+00:00
Resolved: 2022-08-12 20:35:03+00:00

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

---
```
[task 2021-02-27T10:34:55.507Z] 10:34:55     INFO - TEST-PASS | browser/components/aboutlogins/tests/browser/browser_openImportCSV.js | Import file picker opened - 
[task 2021-02-27T10:34:55.507Z] 10:34:55     INFO - Waiting for the import error dialog
[task 2021-02-27T10:34:55.507Z] 10:34:55     INFO - Console message: [JavaScript Error: "FILE_FORMAT_ERROR" {file: "resource://gre/modules/LoginCSVImport.jsm" line: 62}]
[task 2021-02-27T10:34:55.507Z] 10:34:55     INFO - ImportFailedException@resource://gre/modules/LoginCSVImport.jsm:62:5
[task 2021-02-27T10:34:55.507Z] 10:34:55     INFO - importFromCSV@resource://gre/modules/LoginCSVImport.jsm:192:13
[task 2021-02-27T10:34:55.508Z] 10:34:55     INFO - 
[task 2021-02-27T10:34:55.508Z] 10:34:55     INFO - Buffered messages finished
[task 2021-02-27T10:34:55.508Z] 10:34:55     INFO - TEST-UNEXPECTED-FAIL | browser/components/aboutlogins/tests/browser/browser_openImportCSV.js | Uncaught exception - at chrome://mochitests/content/browser/browser/components/aboutlogins/tests/browser/browser_openImportCSV.js:163 - TypeError: can't access property "getAttribute", dialog.shadowRoot.activeElement is null
[task 2021-02-27T10:34:55.508Z] 10:34:55     INFO - Stack trace:
[task 2021-02-27T10:34:55.508Z] 10:34:55     INFO - @chrome://mochitests/content/browser/browser/components/aboutlogins/tests/browser/browser_openImportCSV.js:163:9
[task 2021-02-27T10:34:55.508Z] 10:34:55     INFO - execute@resource://specialpowers/SpecialPowersSandbox.jsm:141:12
[task 2021-02-27T10:34:55.508Z] 10:34:55     INFO - _spawnTask@resource://specialpowers/SpecialPowersChild.jsm:1611:15
[task 2021-02-27T10:34:55.508Z] 10:34:55     INFO - receiveMessage@resource://specialpowers/SpecialPowersChild.jsm:310:21
[task 2021-02-27T10:34:55.508Z] 10:34:55     INFO - Leaving test bound test_open_import_from_csv_with_invalid_file
[task 2021-02-27T10:34:55.508Z] 10:34:55     INFO - Console message: SENTINEL
[task 2021-02-27T10:34:55.508Z] 10:34:55     INFO - GECKO(9180) | [Child 5956: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 23 (000001CB7CC55C80) [pid = 5956] [serial = 57] [outer = 0000000000000000] [url = about:logins?filter=xxx-no-logins-for-site-xxx]
[task 2021-02-27T10:34:55.509Z] 10:34:55     INFO - GECKO(9180) | [Child 5956: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 22 (000001CB7D27A740) [pid = 5956] [serial = 61] [outer = 0000000000000000] [url = about:logins?filter=https%3A%2F%2Fexample.comx]
[task 2021-02-27T10:34:55.509Z] 10:34:55     INFO - GECKO(9180) | [Child 5956: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 000001CB7CDA6400 == 8 [pid = 5956] [id = 19] [url = about:logins?filter=https%3A%2F%2Fexample.comx]
[task 2021-02-27T10:34:55.509Z] 10:34:55     INFO - GECKO(9180) | [Child 5956: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 000001CB7C1ECC00 == 7 [pid = 5956] [id = 18] [url = about:logins?filter=xxx-no-logins-for-site-xxx]
[task 2021-02-27T10:34:55.509Z] 10:34:55     INFO - GECKO(9180) | [Child 5956: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 21 (000001CB7701C900) [pid = 5956] [serial = 68] [outer = 0000000000000000] [url = about:logins]
[task 2021-02-27T10:34:55.509Z] 10:34:55     INFO - GECKO(9180) | [Child 5956: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 000001CB7924F800 == 6 [pid = 5956] [id = 21] [url = about:logins]
[task 2021-02-27T10:34:55.509Z] 10:34:55     INFO - GECKO(9180) | [Child 5956: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 000001CB79254C00 == 5 [pid = 5956] [id = 20] [url = about:logins]
[task 2021-02-27T10:34:55.509Z] 10:34:55     INFO - GECKO(9180) | [Child 5956: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 20 (000001CB7D8A1900) [pid = 5956] [serial = 65] [outer = 0000000000000000] [url = about:logins]
[task 2021-02-27T10:34:55.509Z] 10:34:55     INFO - GECKO(9180) | MEMORY STAT | vsize 2104251MB | vsizeMaxContiguous 68629311MB | residentFast 289MB | heapAllocated 101MB
[task 2021-02-27T10:34:55.510Z] 10:34:55     INFO - TEST-OK | browser/components/aboutlogins/tests/browser/browser_openImportCSV.js | took 4931ms```