New issue
Advanced search Search tips

Issue 894188 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

[Autofill] Card details not being set when autofilled again

Reported by umangh...@gmail.com, Oct 10

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36

Steps to reproduce the problem:
1. Add two different cards (different numbers, expiration) form chrome://settings/autofill
2. Go to https://umanggalaiya.in/playground/card-autofill.html
3. Select the first card. Name, card number, and expiration should be auto-filled.
4. Clear name.
5. Select the second card. Card number and expiration don't get updated.

What is the expected behavior?
Upon selecting a card again, the auto-filled details for the payment method should be updated.

What went wrong?
Auto-filled details are set once a payment method is selected. However, if you select a different payment method, the previously auto-filled fields related to the payment method stay as they are and do not get updated with the values of the newly selected payment method.

Did this work before? N/A 

Chrome version: 69.0.3497.100  Channel: stable
OS Version: OS X 10.13.4
Flash Version:
 
Chrome Card Autofill.mov
343 KB View Download
Components: UI>Browser>Autofill

Comment 2 Deleted

Parastoo, can you please take a look since you've done some work in that space?
Edits by a user set a field’s auto-filled state to not auto-filled. https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/html/forms/html_input_element.cc?rcl=70b40d91aacd21a0567653527b414a004fed3019&l=1233 and https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/html/forms/html_input_element.cc?rcl=70b40d91aacd21a0567653527b414a004fed3019&l=1130

Elements are refilled only if they are not auto-filled or they are being filled from a different form. https://cs.chromium.org/chromium/src/components/autofill/content/renderer/autofill_agent.cc?rcl=70b40d91aacd21a0567653527b414a004fed3019&l=428

So unless the user edits any field, subsequent payment method selections won't update the auto-filled values.

Sign in to add a comment