Closed Bug 2089497 Opened 21 days ago Closed 16 days ago

No credit card save prompt when a stored card can't be decrypted

Categories

(Toolkit :: Form Autofill, defect, P2)

defect

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: dimi, Assigned: dimi)

References

Details

Attachments

(1 external file)

If a saved card can't be decrypted, Firefox never offers to save or update a card from a submitted form, so the user can't replace the broken card. This affects both the JSON and the Rust store.

_onCreditCardSubmit (FormAutofillParent.sys.mjs) calls getMatchRecords and getDuplicateRecords, which decrypt every stored card. An unreadable card throws NS_ERROR_FAILURE (JSON store) or a CryptoError (Rust store). The handler only catches NS_ERROR_ABORT, so the submit handler rejects and no doorhanger is shown.

One unreadable card failed the whole duplicate search, so the submit handler
rejected and no save doorhanger was shown, leaving the user no way to replace
the broken card.

See Also: → 2089931
Pushed by dlee@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/1be9dea5580f https://hg.mozilla.org/integration/autoland/rev/5a3e1d6d5e9c Skip stored credit cards that cannot be decrypted when looking for a duplicate of a submitted card. r=joschmidt,credential-management-reviewers
Status: ASSIGNED → RESOLVED
Closed: 16 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
QA Whiteboard: [qa-triage-done-c163/b162]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: