Bug 1901247, get the required fields from the address meta data so that it is region specific,r=#credential-management-reviewers
ClosedPublic

Authored by NeilDeakin on Jun 14 2024, 1:03 PM.

Details

Summary

Remove the automatic assignment of the preference extensions.formautofill.addresses.capture.requiredFields in tests and force each test to manually set it since using the preference is no longer expected.

Diff Detail

Repository
rMOZILLACENTRAL mozilla-central
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

phab-bot changed the visibility from "Custom Policy" to "Public (No Login Required)".
phab-bot changed the edit policy from "Custom Policy" to "Restricted Project (Project)".
phab-bot removed a project: secure-revision.

In this patch I left the preference in place as a means to override the list of fields. Some tests need to use a blank list, so either this option should be used or the tests will need to be modified.

dimi requested changes to this revision.Jun 17 2024, 12:57 PM

Looks good! thanks!
could you help add a test file browser_address_doorhanger_required_fields.js
and move these two subtests - https://searchfox.org/mozilla-central/rev/a26e972e97fbec860400d80df625193f4c88d64e/browser/extensions/formautofill/test/browser/address/browser_address_doorhanger_display.js#241-305
to the new file? We might also need to update the test to ensure we are using requiredFields from the address metadata.

This revision now requires changes to proceed.Jun 17 2024, 12:57 PM
NeilDeakin updated this revision to Diff 877914.
NeilDeakin edited the summary of this revision. (Show Details)
dimi added a project: testing-approved.

Thank you for writing such a comprehensive test! awesome!

This revision is now accepted and ready to land.Jun 18 2024, 6:48 AM