Closed Bug 1625028 Opened 6 years ago Closed 6 years ago

Add plain mochitest coverage for new-password heuristics

Categories

(Toolkit :: Password Manager, task, P2)

76 Branch
Desktop
Unspecified
task

Tracking

()

RESOLVED FIXED
mozilla76
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: nobody → bdanforth
Status: NEW → ASSIGNED
Priority: -- → P2

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.

Pushed by btara@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9a829438cc04 Add plain mochitest coverage for new-password heuristics r=MattN
Pushed by mozilla@noorenberghe.ca: https://hg.mozilla.org/integration/autoland/rev/79ccafa8b3c0 Rename test_autocomplete_new_password.html to test_autocomplete_password_generation.html r=MattN
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla76
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: