Open
Bug 1896494
Opened 5 months ago
Updated 4 months ago
Formautofill doesn't always capture the newest data for split fields
Categories
(Toolkit :: Form Autofill, defect, P3)
Toolkit
Form Autofill
Tracking
()
NEW
People
(Reporter: issammani, Unassigned)
References
(Depends on 1 open bug)
Details
(Whiteboard: [fxcm-bugs-2023])
- Go to: https://codepen.io/issammani/pen/PovoQMq
- Autofill a credit card
- Change either one of the
cc-name-*
fields and/or thecc-exp
- Submit
Expected behaviour
Doorhanger shows to update the credit card data
Current behaviour
Doorhanger doesn't show up.
Reporter | ||
Updated•5 months ago
|
Severity: -- → N/A
Priority: -- → P3
Reporter | ||
Comment 1•5 months ago
|
||
This the form from the codepen:
<form>
<input autocomplete="cc-given-name" />
<input autocomplete="cc-additional-name" />
<input autocomplete="cc-family-name" />
<input autocomplete="cc-name" hidden/>
<input autocomplete="cc-number" />
<input autocomplete="cc-exp" />
<input autocomplete="cc-exp-month" hidden/>
<input autocomplete="cc-exp-year" hidden/>
<input type="submit" />
</form>
What happens is that we autofill hidden fields ( for a good reason ), but when we capture we have no logic to check which fields were changed in the case of split fields. For name, we always prefer the cc-name
field and for expiration date we prefer the split fields. This causes us to not pickup changes from the form.
Reporter | ||
Updated•5 months ago
|
Whiteboard: [fxcm-bugs-2023]
Updated•5 months ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•