Closed Bug 1775233 Opened 3 years ago Closed 3 years ago

Treat form contains only a credit card number field a valid credit card form

Categories

(Toolkit :: Form Autofill, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
104 Branch
Tracking Status
firefox104 --- fixed

People

(Reporter: dimi, Assigned: dimi)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxcm-fathom-cc-p2])

Attachments

(2 files)

With the work in Bug 1681985, we are more confident in how we detect credit card number field. The next step is to relax the restriction regarding a valid credit card section must contain a credit card number field AND (a credit name field or a expiry date field)[1]
We can start with as long as a credit card field is detected in a form, we treat the form as a valid cc section. This will address cases where sites use a separate form/iframe for credit card number field, which is actually not a rare scenario.

[1] https://searchfox.org/mozilla-central/rev/b1a5802e0f73bfd6d2096e5fefc2b47831a50b2d/toolkit/components/formautofill/FormAutofillHandler.jsm#1045-1048

Blocks: 1775458
Attachment #9285451 - Attachment description: WIP: Bug 1775233 - P1. Treat form contains only a credit card number field a valid credit card form → Bug 1775233 - P1. Consider credit card sections that contain only a credit card number field to be valid cc sections r=sgalich
Attachment #9285452 - Attachment description: WIP: Bug 1775233 - P2. Update testcases to accept credit card forms with only one credit card number field (without autocomplete=cc-number) → Bug 1775233 - P2. Update testcases to accept credit card forms with only one credit card number field (without autocomplete=cc-number) r=sgalich
Pushed by dlee@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4a26caa81182 P1. Consider credit card sections that contain only a credit card number field to be valid cc sections r=sgalich https://hg.mozilla.org/integration/autoland/rev/9917592bf5d8 P2. Update testcases to accept credit card forms with only one credit card number field (without autocomplete=cc-number) r=sgalich
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch
Blocks: 1782535
Blocks: 1783129
Regressions: 1783194
Blocks: 1788621
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: