Send input event on element change.
Some javascript frameworks (e.g. React) or pages have a cache version of input fields in pages. This cache will override the autofill value of the fields. When value is changed, events must be sent to update these cache. When a user type in a field, the following events are usually sent: - keydown - input - change - keyup By testing, most framework use use one of these events, and some framework use the data field of the event as new value. Send these events when updating fields. Bug: 783025, 728631, 732360 Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs Change-Id: I147a4471ecd2e389cfca57d2aa9d78f61360aa61 Reviewed-on: https://chromium-review.googlesource.com/771674 Commit-Queue: Olivier Robin <olivierrobin@chromium.org> Reviewed-by:Moe Ahmadi <mahmadi@chromium.org> Reviewed-by:
Peter Lee <pkl@chromium.org> Cr-Commit-Position: refs/heads/master@{#520946}
Showing
Please register or sign in to comment