Open Bug 1647381 Opened 4 years ago Updated 2 years ago

[deathwishcoffee.com]Credit Card Autofill Expiration date has invalid format

Categories

(Toolkit :: Form Autofill, defect, P3)

79 Branch
x86_64
Linux
defect

Tracking

()

Tracking Status
firefox77 --- disabled
firefox78 --- disabled
firefox79 --- disabled

People

(Reporter: marcela.calderon, Unassigned)

References

(Blocks 2 open bugs, )

Details

(Whiteboard: [cc-autofill-reserve])

Attachments

(3 files)

Attached video CC_dateformat.mp4

Affected Version:
Firefox 79.0a1 (2020-06-22)(64-bit)

TEsted on:
Ubuntu 20.04 LTS

Preconditions
Have the following set up:

  1. Enable the following preferences and restart the browser:
    "extensions.formautofill.creditCards.available" pref is set to true
    "extensions.formautofill.creditCards.enabled" pref is set to true
    (for Beta also set up: extensions.formautofill.available set to "on")
  2. Have multiple saved Credit Cards
  3. NordVPN set up for USA or region to US

Steps to Reproduce

  1. Open Firefox and to to https://www.deathwishcoffee.com
  2. Reach the Payment form
  3. Click on "Name on Card" and select one in the dropdown list

Expected Result
All fields should be fill without issues

Actaul Result
Expiration date field is completed with an invalid format

Whiteboard: [ccautofill]
Blocks: 1641068
Summary: Credit Card Autofill Expiration date has invalid format → [deathwishcoffee.com]Credit Card Autofill Expiration date has invalid format
Priority: -- → P2
Whiteboard: [ccautofill] → [cc-autofill-mvp]
Severity: -- → S3

This problem arises because the only indication that the date needs to be exactly 5 characters long is in instructions provided to the user. It would be possible to work around this by adding heuristics to check, e.g., the placeholder field on the <input> element, as well as any nearby text (e.g., in <label> elements) for patterns like /(mm ?[\/-] ?yy(yy)?)|(yy(yy)? ?[\/-] ?mm/,"i" and reformatting the cc-exp value in the modified profile to match.

This seems like it is likely to be somewhat uncommon behavior; and, given the difficulty in reliably detecting it, I would suggest not pursuing a fix unless it appears on a large number of sites or a high-profile site.

Whiteboard: [cc-autofill-mvp] → [cc-autofill-reserve]
Priority: P2 → P3

This behaviour is the default for all sites powered by Shopify; I ran into this twice this morning.

This seems to have been resolved, at least for Shopify powered sites, sometime in the last few months.

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

Attachment

General

Created:
Updated:
Size: