Bug: Intermittent browser/components/aboutlogins/tests/browser/browser_removeAllDialog.js | Uncaught exception - Waiting for login-item to enter edit mode - timed out after 50 tries.
Status: RESOLVED
Priority: P5
Resolution: DUPLICATE
Created: 2020-12-14 19:58:28+00:00
Resolved: 2022-07-25 23:13:29+00:00

**Filed by:** smolnar [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=324477111&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/ROuRUYOXTKezxyhR6e81eQ/runs/0/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/ROuRUYOXTKezxyhR6e81eQ/runs/0/artifacts/public/logs/live_backing.log&only_show_unexpected=1

---
```
" 19:02:32     INFO - TEST-START | browser/components/aboutlogins/tests/browser/browser_removeAllDialog.js
[task 2020-12-14T19:02:45.935Z] 19:02:45     INFO - TEST-INFO | started process screencapture
[task 2020-12-14T19:02:46.015Z] 19:02:46     INFO - TEST-INFO | screencapture: exit 0
[task 2020-12-14T19:02:46.015Z] 19:02:46     INFO - Buffered messages logged at 19:02:32
[task 2020-12-14T19:02:46.015Z] 19:02:46     INFO - Entering test bound setup_head
[task 2020-12-14T19:02:46.015Z] 19:02:46     INFO - Leaving test bound setup_head
[task 2020-12-14T19:02:46.015Z] 19:02:46     INFO - Entering test bound setup
[task 2020-12-14T19:02:46.015Z] 19:02:46     INFO - Buffered messages logged at 19:02:33
[task 2020-12-14T19:02:46.015Z] 19:02:46     INFO - Leaving test bound setup
[task 2020-12-14T19:02:46.015Z] 19:02:46     INFO - Entering test bound test_remove_all_dialog_l10n
[task 2020-12-14T19:02:46.015Z] 19:02:46     INFO - TEST-PASS | browser/components/aboutlogins/tests/browser/browser_removeAllDialog.js | test_login1 - 
[task 2020-12-14T19:02:46.016Z] 19:02:46     INFO - Console message: [JavaScript Warning: "Layout was forced before the page was fully loaded. If stylesheets are not yet loaded this may cause a flash of unstyled content." {file: "chrome://browser/content/aboutlogins/components/login-filter.js" line: 25}]
[task 2020-12-14T19:02:46.016Z] 19:02:46     INFO - Buffered messages logged at 19:02:34
[task 2020-12-14T19:02:46.016Z] 19:02:46     INFO - remove all dialog should be opened
[task 2020-12-14T19:02:46.016Z] 19:02:46     INFO - TEST-PASS | browser/components/aboutlogins/tests/browser/browser_removeAllDialog.js | true == true - 
[task 2020-12-14T19:02:46.017Z] 19:02:46     INFO - TEST-PASS | browser/components/aboutlogins/tests/browser/browser_removeAllDialog.js | Title contents should match l10n-id attribute set on element - "about-logins-confirm-remove-all-dialog-title" == "about-logins-confirm-remove-all-dialog-title" - 
[task 2020-12-14T19:02:46.021Z] 19:02:46     INFO - TEST-PASS | browser/components/aboutlogins/tests/browser/browser_removeAllDialog.js | Message contents should match l10n-id attribute set on element - "about-logins-confirm-remove-all-dialog-message" == "about-logins-confirm-remove-all-dialog-message" - 
[task 2020-12-14T19:02:46.021Z] 19:02:46     INFO - TEST-PASS | browser/components/aboutlogins/tests/browser/browser_removeAllDialog.js | Label contents should match l10n-id attribute set on outer element - "about-logins-confirm-remove-all-dialog-checkbox-label" == "about-logins-confirm-remove-all-dialog-checkbox-label" - 
[task 2020-12-14T19:02:46.025Z] 19:02:46     INFO - TEST-PASS | browser/components/aboutlogins/tests/browser/browser_removeAllDialog.js | Cancel button contents should match l10n-id attribute set on outer element - "confirmation-dialog-cancel-button" == "confirmation-dialog-cancel-button" - 
[task 2020-12-14T19:02:46.025Z] 19:02:46     INFO - TEST-PASS | browser/components/aboutlogins/tests/browser/browser_removeAllDialog.js | Remove all button contents should match l10n-id attribute set on outer element - "about-logins-confirm-remove-all-dialog-confirm-button-label" == "about-logins-confirm-remove-all-dialog-confirm-button-label" - 
[task 2020-12-14T19:02:46.025Z] 19:02:46     INFO - TEST-PASS | browser/components/aboutlogins/tests/browser/browser_removeAllDialog.js | Title contents should match l10n-args attribute set on element - 1 == 1 - 
[task 2020-12-14T19:02:46.026Z] 19:02:46     INFO - TEST-PASS | browser/components/aboutlogins/tests/browser/browser_removeAllDialog.js | Message contents should match l10n-args attribute set on element - 1 == 1 - 
[task 2020-12-14T19:02:46.026Z] 19:02:46     INFO - TEST-PASS | browser/components/aboutlogins/tests/browser/browser_removeAllDialog.js | Label contents should match l10n-id attribute set on outer element - 1 == 1 - 
[task 2020-12-14T19:02:46.026Z] 19:02:46     INFO - Leaving test bound test_remove_all_dialog_l10n
[task 2020-12-14T19:02:46.027Z] 19:02:46     INFO - Entering test bound test_remove_all_dialog_keyboard_navigation
[task 2020-12-14T19:02:46.027Z] 19:02:46     INFO - Buffered messages logged at 19:02:35
[task 2020-12-14T19:02:46.027Z] 19:02:46     INFO - remove all dialog should be opened
[task 2020-12-14T19:02:46.027Z] 19:02:46     INFO - TEST-PASS | browser/components/aboutlogins/tests/browser/browser_removeAllDialog.js | Remove all should be disabled on dialog open - true == true - 
[task 2020-12-14T19:02:46.027Z] 19:02:46     INFO - TEST-PASS | browser/components/aboutlogins/tests/browser/browser_removeAllDialog.js | Remove all should be enabled when activating the checkbox - false == false - 
[task 2020-12-14T19:02:46.027Z] 19:02:46     INFO - TEST-PASS | browser/components/aboutlogins/tests/browser/browser_removeAllDialog.js | Remove all should be disabled after deactivating the checkbox - true == true - 
[task 2020-12-14T19:02:46.028Z] 19:02:46     INFO - TEST-PASS | browser/components/aboutlogins/tests/browser/browser_removeAllDialog.js | Cancel button should be the next element in tab order - {} == {} - 
[task 2020-12-14T19:02:46.028Z] 19:02:46     INFO - Buffered messages logged at 19:02:36
[task 2020-12-14T19:02:46.028Z] 19:02:46     INFO - remove all dialog should be opened
[task 2020-12-14T19:02:46.033Z] 19:02:46     INFO - remove all dialog should be opened
[task 2020-12-14T19:02:46.033Z] 19:02:46     INFO - TEST-PASS | browser/components/aboutlogins/tests/browser/browser_removeAllDialog.js | dismiss button should be focused - {} == {} - 
[task 2020-12-14T19:02:46.033Z] 19:02:46     INFO - Leaving test bound test_remove_all_dialog_keyboard_navigation
[task 2020-12-14T19:02:46.033Z] 19:02:46     INFO - Entering test bound test_remove_all_dialog_remove_logins
[task 2020-12-14T19:02:46.034Z] 19:02:46     INFO - Buffered messages logged at 19:02:37
[task 2020-12-14T19:02:46.034Z] 19:02:46     INFO - remove all dialog should be opened
[task 2020-12-14T19:02:46.034Z] 19:02:46     INFO - TEST-PASS | browser/components/aboutlogins/tests/browser/browser_removeAllDialog.js | Checkbox should be the focused element on dialog open - {} == {} - 
[task 2020-12-14T19:02:46.034Z] 19:02:46     INFO - TEST-PASS | browser/components/aboutlogins/tests/browser/browser_removeAllDialog.js | Title contents should match l10n-id attribute set on element - "about-logins-confirm-remove-all-dialog-title" == "about-logins-confirm-remove-all-dialog-title" - 
[task 2020-12-14T19:02:46.034Z] 19:02:46     INFO - TEST-PASS | browser/components/aboutlogins/tests/browser/browser_removeAllDialog.js | Title contents should match l10n-args attribute set on element - 2 == 2 - 
[task 2020-12-14T19:02:46.034Z] 19:02:46     INFO - TEST-PASS | browser/components/aboutlogins/tests/browser/browser_removeAllDialog.js | Message contents should match l10n-id attribute set on element - "about-logins-confirm-remove-all-dialog-message" == "about-logins-confirm-remove-all-dialog-message" - 
[task 2020-12-14T19:02:46.034Z] 19:02:46     INFO - TEST-PASS | browser/components/aboutlogins/tests/browser/browser_removeAllDialog.js | Message contents should match l10n-args attribute set on element - 2 == 2 - 
[task 2020-12-14T19:02:46.035Z] 19:02:46     INFO - TEST-PASS | browser/components/aboutlogins/tests/browser/browser_removeAllDialog.js | Label contents should match l10n-id attribute set on outer element - "about-logins-confirm-remove-all-dialog-checkbox-label" == "about-logins-confirm-remove-all-dialog-checkbox-label" - 
[task 2020-12-14T19:02:46.035Z] 19:02:46     INFO - TEST-PASS | browser/components/aboutlogins/tests/browser/browser_removeAllDialog.js | Label contents should match l10n-id attribute set on outer element - 2 == 2 - 
[task 2020-12-14T19:02:46.035Z] 19:02:46     INFO - TEST-PASS | browser/components/aboutlogins/tests/browser/browser_removeAllDialog.js | Cancel button contents should match l10n-id attribute set on outer element - "confirmation-dialog-cancel-button" == "confirmation-dialog-cancel-button" - 
[task 2020-12-14T19:02:46.035Z] 19:02:46     INFO - TEST-PASS | browser/components/aboutlogins/tests/browser/browser_removeAllDialog.js | Remove all button contents should match l10n-id attribute set on outer element - "about-logins-confirm-remove-all-dialog-confirm-button-label" == "about-logins-confirm-remove-all-dialog-confirm-button-label" - 
[task 2020-12-14T19:02:46.035Z] 19:02:46     INFO - TEST-PASS | browser/components/aboutlogins/tests/browser/browser_removeAllDialog.js | Remove all button should be disabled on dialog open - true == true - 
[task 2020-12-14T19:02:46.035Z] 19:02:46     INFO - TEST-PASS | browser/components/aboutlogins/tests/browser/browser_removeAllDialog.js | Remove all should be enabled after clicking the checkbox - false == false - 
[task 2020-12-14T19:02:46.035Z] 19:02:46     INFO - Buffered messages logged at 19:02:38
[task 2020-12-14T19:02:46.036Z] 19:02:46     INFO - TEST-PASS | browser/components/aboutlogins/tests/browser/browser_removeAllDialog.js | Remove all logins menu button is disabled if there are no logins - true == true - 
[task 2020-12-14T19:02:46.036Z] 19:02:46     INFO - Leaving test bound test_remove_all_dialog_remove_logins
[task 2020-12-14T19:02:46.036Z] 19:02:46     INFO - Entering test bound test_edit_mode_resets_on_remove_all_with_login
[task 2020-12-14T19:02:46.036Z] 19:02:46     INFO - TEST-PASS | browser/components/aboutlogins/tests/browser/browser_removeAllDialog.js | Login item should exist - {} == true - 
[task 2020-12-14T19:02:46.036Z] 19:02:46     INFO - Buffered messages finished
[task 2020-12-14T19:02:46.042Z] 19:02:46     INFO - TEST-UNEXPECTED-FAIL | browser/components/aboutlogins/tests/browser/browser_removeAllDialog.js | Uncaught exception - Waiting for login-item to enter edit mode - timed out after 50 tries.
[task 2020-12-14T19:02:46.042Z] 19:02:46     INFO - Leaving test bound test_edit_mode_resets_on_remove_all_with_login
[task 2020-12-14T19:02:46.042Z] 19:02:46     INFO - Entering test bound test_remove_all_when_creating_new_login
[task 2020-12-14T19:02:46.042Z] 19:02:46     INFO - GECKO(1944) | JavaScript error: resource://gre/modules/LoginHelper.jsm, line 1383: NS_ERROR_FAILURE: This login already exists.
[task 2020-12-14T19:02:46.042Z] 19:02:46     INFO - Not taking screenshot here: see the one that was previously logged
[task 2020-12-14T19:02:46.042Z] 19:02:46     INFO - TEST-UNEXPECTED-FAIL | browser/components/aboutlogins/tests/browser/browser_removeAllDialog.js | Uncaught exception - [Exception... "This login already exists."  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: resource://gre/modules/LoginHelper.jsm :: createLoginAlreadyExistsError :: line 1383"  data: yes]
[task 2020-12-14T19:02:46.042Z] 19:02:46     INFO - Stack trace:
[task 2020-12-14T19:02:46.042Z] 19:02:46     INFO - createLoginAlreadyExistsError@resource://gre/modules/LoginHelper.jsm:1383:23
[task 2020-12-14T19:02:46.042Z] 19:02:46     INFO - addLogin@resource://gre/modules/LoginManager.jsm:323:25
[task 2020-12-14T19:02:46.042Z] 19:02:46     INFO - addLogin@chrome://mochitests/content/browser/browser/components/aboutlogins/tests/browser/head.js:61:27
[task 2020-12-14T19:02:46.043Z] 19:02:46     INFO - test_remove_all_when_creating_new_login@chrome://mochitests/content/browser/browser/components/aboutlogins/tests/browser/browser_removeAllDialog.js:467:23
[task 2020-12-14T19:02:46.043Z] 19:02:46     INFO - Tester_execTest/<@chrome://mochikit/content/browser-test.js:1069:34
[task 2020-12-14T19:02:46.043Z] 19:02:46     INFO - Leaving test bound test_remove_all_when_creating_new_login
[task 2020-12-14T19:02:46.043Z] 19:02:46     INFO - Console message: [JavaScript Error: "NS_ERROR_FAILURE: This login already exists." {file: "resource://gre/modules/LoginHelper.jsm" line: 1383}]
[task 2020-12-14T19:02:46.043Z] 19:02:46     INFO - createLoginAlreadyExistsError@resource://gre/modules/LoginHelper.jsm:1383:23
[task 2020-12-14T19:02:46.043Z] 19:02:46     INFO - addLogin@resource://gre/modules/LoginManager.jsm:323:25
[task 2020-12-14T19:02:46.043Z] 19:02:46     INFO - addLogin@chrome://mochitests/content/browser/browser/components/aboutlogins/tests/browser/head.js:61:27
[task 2020-12-14T19:02:46.043Z] 19:02:46     INFO - test_remove_all_when_creating_new_login@chrome://mochitests/content/browser/browser/components/aboutlogins/tests/browser/browser_removeAllDialog.js:467:23
[task 2020-12-14T19:02:46.043Z] 19:02:46     INFO - Tester_execTest/<@chrome://mochikit/content/browser-test.js:1069:34
[task 2020-12-14T19:02:46.043Z] 19:02:46     INFO - 
[task 2020-12-14T19:02:46.043Z] 19:02:46     INFO - Not taking screenshot here: see the one that was previously logged
[task 2020-12-14T19:02:46.043Z] 19:02:46     INFO - TEST-UNEXPECTED-FAIL | browser/components/aboutlogins/tests/browser/browser_removeAllDialog.js | [JavaScript Error: "NS_ERROR_FAILURE: This login already exists." {file: "resource://gre/modules/LoginHelper.jsm" line: 1383}]
[task 2020-12-14T19:02:46.043Z] 19:02:46     INFO - createLoginAlreadyExistsError@resource://gre/modules/LoginHelper.jsm:1383:23
[task 2020-12-14T19:02:46.043Z] 19:02:46     INFO - addLogin@resource://gre/modules/LoginManager.jsm:323:25
[task 2020-12-14T19:02:46.043Z] 19:02:46     INFO - addLogin@chrome://mochitests/content/browser/browser/components/aboutlogins/tests/browser/head.js:61:27
[task 2020-12-14T19:02:46.043Z] 19:02:46     INFO - test_remove_all_when_creating_new_login@chrome://mochitests/content/browser/browser/components/aboutlogins/tests/browser/browser_removeAllDialog.js:467:23
[task 2020-12-14T19:02:46.043Z] 19:02:46     INFO - Tester_execTest/<@chrome://mochikit/content/browser-test.js:1069:34
[task 2020-12-14T19:02:46.043Z] 19:02:46     INFO -  - 
[task 2020-12-14T19:02:46.043Z] 19:02:46     INFO - Stack trace:
[task 2020-12-14T19:02:46.044Z] 19:02:46     INFO - chrome://mochikit/content/browser-test.js:test_ok:1304
[task 2020-12-14T19:02:46.044Z] 19:02:46     INFO - chrome://mochitests/content/browser/browser/components/aboutlogins/tests/browser/head.js:onConsoleMessage:150
[task 2020-12-14T19:02:46.044Z] 19:02:46     INFO - resource://specialpowers/SpecialPowersChild.jsm:observe/<:158
[task 2020-12-14T19:02:46.044Z] 19:02:46     INFO - Console message: SENTINEL
[task 2020-12-14T19:02:46.312Z] 19:02:46     INFO - GECKO(1944) | MEMORY STAT vsizeMaxContiguous not supported in this build configuration.
[task 2020-12-14T19:02:46.312Z] 19:02:46     INFO - GECKO(1944) | MEMORY STAT | vsize 7634MB | residentFast 270MB | heapAllocated 90MB
[task 2020-12-14T19:02:46.312Z] 19:02:46     INFO - TEST-OK | browser/components/aboutlogins/tests/browser/browser_removeAllDialog.js | took 14196ms
[task 2020-12-14T19:02:46.363Z] 19:02:46     INFO - checking window state
[task 2020-12-14T19:02:46.516Z] 19:02:46     INFO - TEST-START | browser/components/aboutlogins/tests/browser/browser_removeAllDialog.js"```