[pmi.org] The expiry date is incorrectly autofilled
Categories
(Toolkit :: Form Autofill, defect, P3)
Tracking
()
People
(Reporter: vchin, Unassigned)
References
Details
STR:
- Navigate to https://my.pmi.org/account/payment-methods
- Edit the saved credit card
- 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
Comment 1•3 years ago
|
||
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.
Comment 2•3 years ago
|
||
The severity field is not set for this bug.
:serg, could you have a look please?
For more information, please visit auto_nag documentation.
Comment 3•3 years ago
|
||
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.
Comment 4•3 years ago
|
||
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
Updated•3 years ago
|
Description
•