Closed Bug 1496472 Opened 6 years ago Closed 2 years ago

The Expiration date of the card is not being cleared by clicking the clear button (Amazon.com, Amazon.ca, Amazon.de, BestBuy.ca, Etsy.ca)

Categories

(Toolkit :: Form Autofill, defect, P3)

Unspecified
All
defect

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox64 --- affected
firefox83 --- affected
firefox84 --- affected
firefox85 --- affected
firefox86 --- affected
firefox94 --- affected
firefox95 --- affected
firefox96 --- affected

People

(Reporter: david.olah, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [cc-autofill-reserve])

Attachments

(3 files)

[Affected versions]: 
Nightly 64.0a1 (2018-10-02)

[Affected platforms]:
Platforms: Windows 10, Mac OS X, Ubuntu 16.04.

[Preconditions]:

Modify the following prefs via about:config:

- extensions.formautofill.available: on
- extensions.formautofill.creditCards.available: true
- have some saved credit cards

[Steps to reproduce]:
1. Go to: https://www.amazon.com
2. Login with a valid account
3. Go to your account
4. Select Payment options
5. Double click on the "name on card" textbox and select a card from the dropdown
6. All the fields will be completed including the Expiration Date
7. Click on the "Name on card" again
8. From the popup that appears, click Clear Autofill Form

[Expected result]:
All the fields are deleted and the expiration date turns back to the default values

[Actual result]:
The Expiration date remains the one that was set to the card that was selected at step 5
Blocks: 1404768
Priority: -- → P2
Whiteboard: [ccautofill]
Priority: P2 → P3
Summary: The Expiration date of the card is not being cleared by clicking the clear button → The Expiration date of the card is not being cleared by clicking the clear button (Amazon.com)
Whiteboard: [ccautofill] → [cc-autofill-reserve]

Hi,
This issue is also reproducible in latest Nightly 85.0a1 (build id: 20201117215529) on amazon.ca. Updating the flags and summary accordingly.
Note that the issue is not reproducible on Chrome.

Summary: The Expiration date of the card is not being cleared by clicking the clear button (Amazon.com) → The Expiration date of the card is not being cleared by clicking the clear button (Amazon.com, Amazon.ca)

Updating this with BestBuy.ca since it can also be reproduced there on the latest Nightly. Also, the autofilled exp date from the dropdowns are not highlighted (they are on Chrome).
Please note that on Chrome the Clear Form option is not even displayed for the autofilled CC Card, so this functionality can't be checked there.

Summary: The Expiration date of the card is not being cleared by clicking the clear button (Amazon.com, Amazon.ca) → The Expiration date of the card is not being cleared by clicking the clear button (Amazon.com, Amazon.ca, BestBuy.ca)
Summary: The Expiration date of the card is not being cleared by clicking the clear button (Amazon.com, Amazon.ca, BestBuy.ca) → The Expiration date of the card is not being cleared by clicking the clear button (Amazon.com, Amazon.ca, BestBuy.ca, Etsy.ca)
Summary: The Expiration date of the card is not being cleared by clicking the clear button (Amazon.com, Amazon.ca, BestBuy.ca, Etsy.ca) → The Expiration date of the card is not being cleared by clicking the clear button (Amazon.com, Amazon.ca, Amazon.de, BestBuy.ca, Etsy.ca)

Reproducible on Amazon.co.uk, Amazon.de, Amazon.fr as well on the latest Firefox Nightly 96.0a1.

Severity: normal → S3
Depends on: 1740070

Tested on Amazon using the latest Nightly 98.0a1 on mac 11.6 and the issue is still reproducible - the Expiration date of the card is not being cleared by clicking the clear button nor highlighted.

So here's the issue for Amazon.com, haven't investigated the other sites yet.

  • There are hidden native <select> elements and visible <span> elements that appear as <select> elements
  • There appears to be some data binding between these hidden <select> elements and the visible <span> elements as changing the value of the <span> elements updates the hidden <select> elements
    • However, you cannot interact with the <select> elements as trying to make the <select> dropdown appear will instead move your focus over to the visible <span> element instead.
  • This means there is one way data binding between the visible <span> element and the invisible <select> element such that any changes to <span> will update <select> but not the other way around.
  • Since our code determines that the hidden <select> element is the autofill element, we reset this on clear.
  • As previously established, there is a one-way data binding with this hidden <select> so the visible <span> element does not update its value.

Additionally, since we believe that the <select> element is the autofill element and not the <span> element, we don't show any highlighting on the visible <span> element.

Issue for Best Buy, they don't render the expiry date elements until you start filling the credit card number field, either manually or via autofill. This is a tricky situation and I don't have a good solution for this off the top of my head.

If you're lucky, you can get autofill to work again after initially filling in the credit card number which will successfully highlight and fill the expiry date fields but obviously this is not a good user experience or something we would want users to have to do to get autofill to work as expected.

Out of all the cases on this bug, the Esty case is the most straightforward one. They have styling on their input elements that overwrites the background-image rule and causes our autofill styling to disappear. This is a side-effect of allowing websites to overwrite our autofill styling compared to other browsers.

Depends on: 1755033

I cannot reproduce this issue anymore on Amazon.com, Amazon.ca, Amazon.de, BestBuy.ca, Etsy.ca, using Windows 10 and macOS 11, with Beta 102. I'll close this as WFM but feel free to reopen it if the issue will occur again.

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: