Open Bug 2048383 Opened 6 days ago Updated 20 hours ago

"Manage payment methods" list empty when a saved card has no expiration date

Categories

(Firefox :: Settings UI, defect, P2)

defect

Tracking

()

ASSIGNED
Tracking Status
firefox152 + affected
firefox153 + affected
firefox154 + affected

People

(Reporter: mtigley, Assigned: mtigley)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxcm-settings-redesign])

Attachments

(1 file, 1 obsolete file)

The "Manage payment methods" list in about:preferences renders empty when any saved credit card has no expiration date. The cards are not lost (they still remain in autofill-profiles.json and still appear in the autocomplete dropdown on web pages), but the entire settings list fails to display because a record can throws during rendering:

Uncaught (in promise) TypeError: can't access property "replace", record['cc-exp'] is undefined

Steps to reproduce

  1. Save a credit card without an expiration date (or add a record to autofill-profiles.json with no cc-exp/cc-exp-month/cc-exp-year).
  2. Open about:preferences → Manage payment methods.

Expected: all saved cards are listed.
Actual: the list is empty (including all other valid cards). The Browser Console shows a TypeError from FormAutofillPreferences.sys.mjs.

Assignee: nobody → mtigley
Status: NEW → ASSIGNED
Severity: -- → S2
Priority: -- → P3
Priority: P3 → P2
Whiteboard: [fxcm-settings-redesign]
Attachment #9598544 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: