Closed Bug 1812633 Opened 2 years ago Closed 5 months ago

[CA][davidstea.com] The Cardholder Name is not captured in the CC doorhanger and it is not saved in CC storage, along with the CC expiry date

Categories

(Toolkit :: Form Autofill, defect, P3)

Desktop
All
defect

Tracking

()

VERIFIED FIXED
Tracking Status
firefox109 --- affected
firefox110 --- affected
firefox111 --- affected

People

(Reporter: ailea, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug, )

Details

Attachments

(2 files)

Found in

  • 111.0a1 (2023-01-26)

Affected versions

  • 111.0a1, 110.0b5, 109.0

Tested platforms

  • Affected platforms: Windows 10, macOS 11, Ubuntu 20

Preconditions

  • browser.search.region CA

Steps to reproduce

  1. Reach the payment form on www.davidstea.com
  2. Fill in manually new CC info and submit the form

Expected result

  1. The Credit Card save doorhanger should be displayed and capture all the expected fields: Cardholder Name, CC number (****last 4 digits).
  2. The credit card should be saved and stored with all the expected info: card number, cardholder name, expiration date, card type.

Actual result

  1. Only the credit card number was captured and displayed in the doorhanger. The "undefined" is displayed instead of the CC Name.
  2. Only the credit card number and CC type is saved in the newly saved CC entry from the storage.

Regression range

  • Not a recent regression.

Additional notes

  • The CC save doorhanger is not displayed at all in Chrome.

The website uses an iframe for each credit card field, right now we only support grouping fields in the same document (not cross iframe). That's why we only capture credit card number after submitting.

Priority: -- → P3
Depends on: 1815399

The initial issue has been resolved, but I've observed that the autofill feature is not working as expected for the 'Name on Card' field in the latest Nightly 132.0a1 on Windows 10 x64: this field is previewed, autofilled and cleared individually. Upon further investigation, it seems that the 'Name on Card' field is situated on the main page, and not inside an iframe, unlike the 'Card Number' and 'Expiry Date' fields(which are located within same-origin iframes). Please find attached the Field Info section details from about:autofill.

I've tested again by flipping on/off the pref extensions.formautofill.heuristics.autofillSameOriginWithTop in about:config.

When the extensions.formautofill.heuristics.autofillSameOriginWithTop setting is set to false(by default):

  • The Cardholder Name field is not cleared when using autofill in the Card Number or Expiry Date.
  • The Cardholder Name field is not being previewed when using autofill in the Card Number or Expiry Date.
  • The Cardholder Name field is not highlighted when using autofill in the Card Number or Expiry Date.
  • The Cardholder Name field is previewed, autofilled, and then cleared individually when using autofill in this Trigger Field.

When the extensions.formautofill.heuristics.autofillSameOriginWithTop setting is set to true, the issues are resolved.

  • The Cardholder Name field is previewed, autofilled, and then cleared individually when using autofill in this Trigger Field, but this is expected behavior.

The 'Name on Card' field is situated on the main page, and not inside an iframe, unlike the 'Card Number' and 'Expiry Date' fields(which are located within same-origin iframes).

Depends on: 1916606
Status: NEW → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED

This issue has been resolved by Bug 1916606. The Cardholder Name field within the main frame is now correctly autofilled and cleared as expected. As agreed with the engineering team and based on this comment, I am marking this as Verified Fixed.

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

Attachment

General

Created:
Updated:
Size: