• Olivier Robin's avatar
    Send input event on element change. · 55518e17
    Olivier Robin authored
    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: default avatarMoe Ahmadi <mahmadi@chromium.org>
    Reviewed-by: default avatarPeter Lee <pkl@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#520946}
    55518e17
common.js 26.4 KB