Bug: Intermittent browser/components/aboutlogins/tests/browser/browser_loginItemErrors.js | Uncaught exception - at chrome://mochitests/content/browser/browser/components/aboutlogins/tests/browser/browser_loginItemErrors.js:98 - TypeError: can't access p
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2021-08-04 18:24:59+00:00
Resolved: 2022-07-19 17:06:09+00:00

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

---
```
INFO - TEST-START | browser/components/aboutlogins/tests/browser/browser_loginItemErrors.js
[task 2021-08-04T17:05:38.145Z] 17:05:38     INFO - GECKO(4936) | console.warn: LoginHelper(Content): "Couldn't parse origin for" "" ({})
[task 2021-08-04T17:05:38.207Z] 17:05:38     INFO - GECKO(4936) | JavaScript error: resource://gre/modules/LoginHelper.jsm, line 1738: NS_ERROR_FAILURE: This login already exists.
[task 2021-08-04T17:05:38.266Z] 17:05:38     INFO - GECKO(4936) | console.warn: LoginHelper(Content): "Couldn't parse origin for" "" ({})
[task 2021-08-04T17:05:38.272Z] 17:05:38     INFO - TEST-INFO | started process screentopng
[task 2021-08-04T17:05:38.841Z] 17:05:38     INFO - TEST-INFO | screentopng: exit 0
[task 2021-08-04T17:05:38.844Z] 17:05:38     INFO - Buffered messages logged at 17:05:37
[task 2021-08-04T17:05:38.845Z] 17:05:38     INFO - Entering test bound setup_head
[task 2021-08-04T17:05:38.846Z] 17:05:38     INFO - Leaving test bound setup_head
[task 2021-08-04T17:05:38.847Z] 17:05:38     INFO - Entering test bound setup
[task 2021-08-04T17:05:38.847Z] 17:05:38     INFO - Buffered messages logged at 17:05:38
[task 2021-08-04T17:05:38.848Z] 17:05:38     INFO - Leaving test bound setup
[task 2021-08-04T17:05:38.849Z] 17:05:38     INFO - Entering test bound test_showLoginItemErrors
[task 2021-08-04T17:05:38.852Z] 17:05:38     INFO - TEST-PASS | browser/components/aboutlogins/tests/browser/browser_loginItemErrors.js | An error message should not be displayed after adding a new login. - true == true - 
[task 2021-08-04T17:05:38.853Z] 17:05:38     INFO - Console message: [JavaScript Error: "NS_ERROR_FAILURE: This login already exists." {file: "resource://gre/modules/LoginHelper.jsm" line: 1738}]
[task 2021-08-04T17:05:38.854Z] 17:05:38     INFO - createLoginAlreadyExistsError@resource://gre/modules/LoginHelper.jsm:1738:23
[task 2021-08-04T17:05:38.854Z] 17:05:38     INFO - addLogin@resource://gre/modules/LoginManager.jsm:323:25
[task 2021-08-04T17:05:38.855Z] 17:05:38     INFO - receiveMessage@resource:///actors/AboutLoginsParent.jsm:138:27
[task 2021-08-04T17:05:38.855Z] 17:05:38     INFO - 
[task 2021-08-04T17:05:38.856Z] 17:05:38     INFO - TEST-PASS | browser/components/aboutlogins/tests/browser/browser_loginItemErrors.js | An error message should be shown after user attempts to add a login that already exists. - true == true - 
[task 2021-08-04T17:05:38.857Z] 17:05:38     INFO - TEST-PASS | browser/components/aboutlogins/tests/browser/browser_loginItemErrors.js | The correct error message is displayed. - "about-logins-error-message-duplicate-login-with-link" == "about-logins-error-message-duplicate-login-with-link" - 
[task 2021-08-04T17:05:38.861Z] 17:05:38     INFO - Buffered messages finished
[task 2021-08-04T17:05:38.861Z] 17:05:38     INFO - TEST-UNEXPECTED-FAIL | browser/components/aboutlogins/tests/browser/browser_loginItemErrors.js | Uncaught exception - at chrome://mochitests/content/browser/browser/components/aboutlogins/tests/browser/browser_loginItemErrors.js:98 - TypeError: can't access property "click", loginListItem is null
[task 2021-08-04T17:05:38.862Z] 17:05:38     INFO - Stack trace:
[task 2021-08-04T17:05:38.863Z] 17:05:38     INFO - @chrome://mochitests/content/browser/browser/components/aboutlogins/tests/browser/browser_loginItemErrors.js:98:7
[task 2021-08-04T17:05:38.863Z] 17:05:38     INFO - Leaving test bound test_showLoginItemErrors
[task 2021-08-04T17:05:38.865Z] 17:05:38     INFO - GECKO(4936) | console.warn: LoginHelper(Content): "Couldn't parse origin for" "" ({})
[task 2021-08-04T17:05:38.865Z] 17:05:38     INFO - Console message: SENTINEL
[task 2021-08-04T17:05:38.866Z] 17:05:38     INFO - GECKO(4936) | MEMORY STAT | vsize 3244MB | residentFast 326MB | heapAllocated 187MB
[task 2021-08-04T17:05:38.867Z] 17:05:38     INFO - TEST-OK | browser/components/aboutlogins/tests/browser/browser_loginItemErrors.js | took 543ms
[task 2021-08-04T17:05:38.867Z] 17:05:38     INFO - checking window state
[task 2021-08-04T17:05:38.876Z] 17:05:38     INFO - TEST-START | browser/components/aboutlogins/tests/browser/browser_loginListChanges.js
```