[Autofill] Card details not being set when autofilled again
Reported by
umangh...@gmail.com,
Oct 10
|
|
Issue descriptionUserAgent: 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:
,
Oct 10
Parastoo, can you please take a look since you've done some work in that space?
,
Oct 11
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 |
|
Comment 1 by dtapu...@chromium.org
, Oct 10