Add plain mochitest coverage for new-password heuristics
Categories
(Toolkit :: Password Manager, task, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox76 | --- | fixed |
People
(Reporter: bdanforth, Assigned: bdanforth)
References
Details
Attachments
(2 files)
Bug 1595244 changed the logic around when password generation is offered through the autocomplete popup for new password fields. While the patches there include a new unit test and updates to some existing tests (a unit test and some browser mochitests), we should also have coverage in plain mochitests.
One test that we may want to update for example is toolkit/components/passwordmgr/test/mochitest/test_autocomplete_new_password.html.
| Assignee | ||
Updated•6 years ago
|
Updated•6 years ago
|
| Assignee | ||
Comment 1•6 years ago
|
||
WIP
Updated the toolkit/components/passwordmgr/test/mochitest/test_autocomplete_new_password.html test to include a third form that has enough signal for the new-password heuristics to detect its password field as a new password field. Factored out most of the test_autofillAutocompletePassword_withGeneration task to be re-checked for this new form. It's not pretty, and the telemetry accounting is very confusing (since autocomplete popup shown/used telemetry is per origin, the logins get cleared during the test, and the autocomplete popup performance telemetry is not per origin), but it's passing.
| Assignee | ||
Comment 2•6 years ago
|
||
Depends on D68499
Comment 5•6 years ago
|
||
| bugherder | ||
Comment 6•6 years ago
|
||
| bugherder | ||
Description
•