Closed Bug 1874338 Opened 1 year ago Closed 1 year ago

cc-type field gets deleted from profile when matched select option found

Categories

(Toolkit :: Form Autofill, defect, P3)

defect

Tracking

()

RESOLVED FIXED
123 Branch
Tracking Status
firefox-esr115 --- wontfix
firefox121 --- wontfix
firefox122 --- wontfix
firefox123 --- fixed

People

(Reporter: issammani, Assigned: issammani)

References

Details

(Whiteboard: [fxcm-bugs-2023])

Attachments

(2 files)

Description

When a select field of type cc-type is detected and matching known credit card network names to the one of the option fails, the cc-type field is deleted from the profile passed to the autocomplete popup. This in turn causes the icon next to the credit cards to show the default icon instead of the correct icons.

Example of a broken form

This form will cause the cc-type to be deleted from the profile, since we can't match any option to a know network ( visa, mastercard, ... )

<form>
  <input autocomplete="cc-name" />
  <input autocomplete="cc-number" />
  <input autocomplete="cc-exp" />
  <select autocomplete="cc-type" >
    <option> foo </option> 
  </select>
</form>
Whiteboard: [fxcm-bugs-2023]
Pushed by imani@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ec2f6ca29b9e Skip deleting cc-type field from credit card profile data when matching select option. r=dimi
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 123 Branch

The patch landed in nightly and beta is affected.
:issammani, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox122 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(imani)
Flags: needinfo?(imani)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: