Closed Bug 2094063 Opened 13 days ago Closed 6 days ago

When saving a payment method with a very long cardholder name, the text overflows outside the card preview in the doorhanger, and the Edit button is no longer visible

Categories

(Toolkit :: Form Autofill, defect, P2)

Firefox 162
Desktop
All
defect

Tracking

()

VERIFIED FIXED
163 Branch
Tracking Status
firefox162 --- disabled
firefox163 --- verified

People

(Reporter: cbadau, Assigned: kalenlu)

References

Details

(Whiteboard: [fxcm-cvv])

Attachments

(1 file, 1 external file)

Attached image Screenshot (598).png —

Found in

  • Nightly 162.0a1

Affected versions

  • Nightly 162.0a1

Tested platforms

  • Affected platforms: All

Preconditions

  • extensions.formautofill.creditCards.storage.rust.active = true
  • extensions.formautofill.creditCards.storage.rust.enabled = true
  • extensions.formautofill.creditCards.cvv.enabled = true
  • extensions.formautofill.creditCards.cvv.supported = "on"
  • Have "Save and autofill payment info" and "Save security codes" enabled

Steps to reproduce

  1. Go to https://luke-chang.github.io/autofill-demo/basic_cc.html.
  2. Fill in the Name field with a very long cardholder name.
  3. Fill in the rest of the fields and submit the form.

Expected result

  • The card save prompt (doorhanger) is displayed. The cardholder name is truncated or wrapped appropriately, the Edit button is visible and accessible regardless of the name length.

Actual result

  • The card save prompt (doorhanger) is displayed. The cardholder name overflows outside the card preview in the doorhanger, and the Edit button is no longer visible. Please see the attached screenshot.

Regression range

  • Not a regression but a new feature implementation.
Whiteboard: [fxcm-cvv]
Severity: -- → S3
Priority: -- → P2

A long name pushed the edit button outside of the doorhanger. Truncate the name
with ellipsis, so the exp date, security code, and edit button stay visible.
Wrap the name in a span within the strings if cardholder name, exp date, and/or
security code need to be reordered for localization.

Assignee: nobody → klu
Status: NEW → ASSIGNED
Pushed by klu@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/ae9dcc504259 https://hg.mozilla.org/integration/autoland/rev/331ecb882af7 Truncate long cardholder names in the payment method doorhanger. r=fluent-reviewers,desktop-theme-reviewers,credential-management-reviewers,kcochrane,bolsson,dimi
Regressions: 2096620
Status: ASSIGNED → RESOLVED
Closed: 6 days ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch

Verified as fixed on Firefox Nightly 163.0a1. Long cardholder names are now properly truncated with an ellipsis, and the Edit button remains visible and accessible in the payment method doorhanger.

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: