Closed Bug 1843650 Opened 3 years ago Closed 2 years ago

Credit card expiration autofill doesn't work on reservit websites

Categories

(Toolkit :: Form Autofill, defect)

defect

Tracking

()

RESOLVED WONTFIX

People

(Reporter: marco, Unassigned)

Details

On reservit-based reservation websites, credit card autofill is only able to autofill credit card number and isn't able to autofill expiration.

It is possible to reproduce the bug on http://softbooker.reservit.com/reservit/reserhotel.php?lang=FR&hotelid=200568.

The severity field is not set for this bug.
:serg, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(sgalich)
Severity: -- → S3
Flags: needinfo?(sgalich)

It's not completely possible to reproduce the bug as described.
On http://softbooker.reservit.com/reservit/reserhotel.php?lang=FR&hotelid=200568
the autofill works for creditcard number and for part of the expiry field. It fills in only the month for a field that should be filled with month and year. That seems to be happening because the input field has an autocomplete attribute set to "section-cc cc-exp-month", so the inferred field type is cc-exp-month instead of cc-exp. For this case, when there is only one expiry field, and it has the value cc-exp*, the fieldname should be updated from cc-exp* to cc-exp at this line of code: https://searchfox.org/mozilla-central/source/toolkit/components/formautofill/shared/FormAutofillHeuristics.sys.mjs#394
However, the updateFunction returns without updating because of ignoreAutocomplete=false and the fieldDetail.reason == "autocomplete" : https://searchfox.org/mozilla-central/source/toolkit/components/formautofill/shared/FieldScanner.sys.mjs#265,
which is desired behavior.

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → WONTFIX

Close this bug as WONT fixed based on Comment 2 - the site sets autocomplete=cc-exp-month for the credit card expiry field.

You need to log in before you can comment on or make changes to this bug.