Editing a credit card number through preferences fails
Categories
(Toolkit :: Form Autofill, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox80 | --- | verified |
People
(Reporter: jimm, Assigned: zbraniecki, NeedInfo)
Details
(Whiteboard: [cc-autofill-mvp])
Attachments
(1 file)
STR:
- Add a credit card through preferences using a test number -
4111111111111111 - save
- edit the card
- change the last 1 to a 2
- save
expected: the card is saved or an error displays
result: clicking save does nothing.
Reporter | ||
Comment 1•4 years ago
|
||
Missing/invalid cc-number FormAutofillStorage.jsm:1947
_validateFields resource://formautofill/FormAutofillStorage.jsm:1947
update resource://formautofill/FormAutofillStorage.jsm:512
AsyncFunctionNext self-hosted:684
(Async: async)
saveRecord chrome://formautofill/content/editDialog.js:57
AsyncFunctionNext self-hosted:684
(Async: async)
handleSubmit chrome://formautofill/content/editDialog.js:195
handleClick chrome://formautofill/content/editDialog.js:108
handleEvent chrome://formautofill/content/editDialog.js:75
(Async: EventListener.handleEvent)
attachEventListeners chrome://formautofill/content/editDialog.js:148
init chrome://formautofill/content/editDialog.js:33
handleEvent chrome://formautofill/content/editDialog.js:71
(Async: EventListener.handleEvent)
AutofillEditDialog chrome://formautofill/content/editDialog.js:28
EditCreditCardDialog chrome://formautofill/content/editDialog.js:179
<anonymous> chrome://formautofill/content/editCreditCard.xhtml:96
AsyncFunctionNext self-hosted:684
(Async: async)
<anonymous> chrome://formautofill/content/editCreditCard.xhtml:103
Assignee | ||
Comment 2•4 years ago
|
||
That's because 4111111111111111
is a valid credit card number, while 4111111111111112
is not.
See https://www.freeformatter.com/credit-card-number-generator-validator.html
Assignee | ||
Comment 3•4 years ago
|
||
I think we can morph this bug into UI feedback on trying to type or save invalid CC number (we don't need to wait for save button to be pressed to calculate that it's invalid).
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 4•4 years ago
|
||
Holly, do we have any UX designs for flagging field inputs in Autofill Preferences as invalid?
Comment 5•4 years ago
•
|
||
For this error, and any other credit card field user input errors dealing with required fields, we should follow the standard described in Photon (https://design.firefox.com/photon/patterns/errors.html):
- Error is triggered after typing an incomplete credit card number and moving focus out of the field, or if that's not possible, on form submit
- Highlight the problem field in red
- Display a flag under the field describing the issue (In this case, "Enter a 16-digit credit card number")
Lockwise example: https://mozilla.invisionapp.com/share/EJRHBMEDKF8#/screens/383026385
Assignee | ||
Comment 6•4 years ago
|
||
Thank you! We should re-triage it.
Updated•4 years ago
|
Comment 7•4 years ago
|
||
(A quick note on the string: it should be "a valid 14 to 19 digit credit card number" or something like that)
Reporter | ||
Updated•4 years ago
|
Assignee | ||
Comment 8•4 years ago
|
||
Comment 10•4 years ago
|
||
bugherder |
Comment 11•4 years ago
|
||
Reproduced the initial issue with an old Nightly build 80.0a1 (2020-07-13) on Windows 10.
Verified - Fixed in latest Nightly 80.0a1 (2020-07-15) (build id: 20200715215205). The Card Number field has a red border when trying to save an invalid CC number and "Please enter a valid card number" message is displayed.
Description
•