Open Bug 1649304 Opened 4 years ago Updated 4 years ago

[HomeDepot] When the website clears the CC field (after the user clicks out and back in), "Clear Autofill" fails to work.

Categories

(Toolkit :: Form Autofill, defect, P3)

defect

Tracking

()

People

(Reporter: abr, Unassigned)

Details

(Whiteboard: [cc-autofill-reserve])

Attachments

(1 file)

STR:

  1. Ensure you have credit card autofill enabled and at least one credit card saved
  2. Go to homedepot.com
  3. Place an item in the cart
  4. Go through the checkout flow, selecting guest checkout
  5. Enter an address and move on to payment information
  6. Click on the credit card number field, and select a card from the drop down
  7. Click on "Address Line 1"
  8. Click back on the credit card number (Note: number will disappear; this is Home Depot's chosen user experience, and not a bug in Firefox)
  9. Select "Clear Autofill Form" from the popup menu

Expected results: The form should reset, and subsequent clicks on the credit card field should display stored cards.

Actual results: The form is left as-is, and there is no way to bring up the list of stored credit cards.

(Testing note: if you click on "PayPal" and then "Credit Card" again, it resets the fields so that you can run through the STR from step 5 onward.)

The problem appears to be that setting the field to "" when it is already blank doesn't trigger any events, so the field stays as-is (i.e., marked as having been autofilled). The attached POC patch fixes the issue. There may be a better way to do this, and it needs tests added.

Severity: -- → S4
Priority: -- → P3
Whiteboard: [cc-autofill-mvp] → [cc-autofill-reserve]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: