Bug: Intermittent browser/components/aboutlogins/tests/browser/browser_openImportCSV.js | Uncaught exception in test - at chrome://mochitests/content/browser/browser/components/aboutlogins/tests/browser/browser_openImportCSV.js:166 - TypeError: can't access p
Status: RESOLVED
Priority: P5
Resolution: DUPLICATE
Created: 2022-04-14 12:10:20+00:00
Resolved: 2022-04-15 06:22:47+00:00

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

---
```
INFO - TEST-PASS | browser/components/aboutlogins/tests/browser/browser_openImportCSV.js | Import file picker opened - 
[task 2022-04-14T10:22:00.730Z] 10:22:00     INFO - Waiting for the import error dialog
[task 2022-04-14T10:22:00.731Z] 10:22:00     INFO - Console message: [JavaScript Error: "FILE_FORMAT_ERROR" {file: "resource://gre/modules/LoginCSVImport.jsm" line: 62}]
[task 2022-04-14T10:22:00.731Z] 10:22:00     INFO - ImportFailedException@resource://gre/modules/LoginCSVImport.jsm:62:5
[task 2022-04-14T10:22:00.731Z] 10:22:00     INFO - importFromCSV@resource://gre/modules/LoginCSVImport.jsm:185:13
[task 2022-04-14T10:22:00.731Z] 10:22:00     INFO - 
[task 2022-04-14T10:22:00.731Z] 10:22:00     INFO - Buffered messages finished
[task 2022-04-14T10:22:00.733Z] 10:22:00     INFO - TEST-UNEXPECTED-FAIL | browser/components/aboutlogins/tests/browser/browser_openImportCSV.js | Uncaught exception in test - at chrome://mochitests/content/browser/browser/components/aboutlogins/tests/browser/browser_openImportCSV.js:166 - TypeError: can't access property "getAttribute", dialog.shadowRoot.activeElement is null
[task 2022-04-14T10:22:00.733Z] 10:22:00     INFO - Stack trace:
[task 2022-04-14T10:22:00.733Z] 10:22:00     INFO - @chrome://mochitests/content/browser/browser/components/aboutlogins/tests/browser/browser_openImportCSV.js:166:9
[task 2022-04-14T10:22:00.733Z] 10:22:00     INFO - execute@resource://specialpowers/SpecialPowersSandbox.jsm:141:12
[task 2022-04-14T10:22:00.733Z] 10:22:00     INFO - _spawnTask@resource://specialpowers/SpecialPowersChild.jsm:1651:15
[task 2022-04-14T10:22:00.733Z] 10:22:00     INFO - receiveMessage@resource://specialpowers/SpecialPowersChild.jsm:310:21
[task 2022-04-14T10:22:00.733Z] 10:22:00     INFO - Leaving test bound test_open_import_from_csv_with_invalid_file
[task 2022-04-14T10:22:00.734Z] 10:22:00     INFO - Console message: SENTINEL
[task 2022-04-14T10:22:00.734Z] 10:22:00     INFO - GECKO(7528) | [Child 8352: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 1dac3f16000 == 0 [pid = 8352] [id = 6] [url = about:blank]
[task 2022-04-14T10:22:00.735Z] 10:22:00     INFO - GECKO(7528) | MEMORY STAT | vsize 2112426MB | vsizeMaxContiguous 66996871MB | residentFast 282MB | heapAllocated 104MB
[task 2022-04-14T10:22:00.735Z] 10:22:00     INFO - TEST-OK | browser/components/aboutlogins/tests/browser/browser_openImportCSV.js | took 4061ms
[task 2022-04-14T10:22:00.735Z] 10:22:00     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-04-14T10:22:00.736Z] 10:22:00     INFO - TEST-UNEXPECTED-FAIL | browser/components/aboutlogins/tests/browser/browser_openImportCSV.js | Found an unexpected tab at the end of test run: about:logins - 
[task 2022-04-14T10:22:00.736Z] 10:22:00     INFO - GECKO(7528) | [Child 8352: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 1dac3f10c00 == 1 [pid = 8352] [id = 7]
[task 2022-04-14T10:22:00.737Z] 10:22:00     INFO - GECKO(7528) | [Child 8352: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 3 (1dabef6e260) [pid = 8352] [serial = 15] [outer = 0]
[task 2022-04-14T10:22:00.737Z] 10:22:00     INFO - GECKO(7528) | [Child 8352: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 4 (1dac3f11000) [pid = 8352] [serial = 16] [outer = 1dabef6e260]
[task 2022-04-14T10:22:00.738Z] 10:22:00     INFO - checking window state
[task 2022-04-14T10:22:00.738Z] 10:22:00     INFO - TEST-START | browser/components/aboutlogins/tests/browser/browser_openPreferences.js
```