Open Bug 1798818 Opened 3 years ago Updated 3 years ago

[pmi.org] The expiry date is incorrectly autofilled

Categories

(Toolkit :: Form Autofill, defect, P3)

defect

Tracking

()

People

(Reporter: vchin, Unassigned)

References

Details

STR:

  1. Navigate to https://my.pmi.org/account/payment-methods
  2. Edit the saved credit card
  3. Autofill with Firefox

Outcome: Even though the saved credit card in the profile has the new expiry date the old expiry date is autofilled

Expected: The new expiry date is autofilled

Nightly 108.0a1 (2022-11-02) on MacOS

Looks like we don't recognize that the field is already filled by the user so when we autofill, we still update the user-filled field.

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

For more information, please visit auto_nag documentation.

Flags: needinfo?(sgalich)

This is because when a user updates the expiry date, the website changes the defaultValue to the value users just set. Our current behavior is when we see element.value === element.defaultValue, we thinks the current is prefilled by the website so we overwrite it.

Regressions: 1687684

A possible solution is detecting whether the defaultValue itself is changed, if yes, consider it as the user has updated the field's value.
See Bug 1642570 Comment 10 for similar idea for form history

Severity: -- → S3
Flags: needinfo?(sgalich)
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.