• David Tseng's avatar
    Do not infer focus/blur events on some AXTrees · 32e39dcd
    David Tseng authored
    On trunk, we currently fire (infer) a focus event when the focused node changes.
    
    For events originating from Blink, it is not reliable to infer focus events because |event_from| cannot be properly associated with the generated or inferred event or even the set of node updates.
    
    This issue only comes up when repeated accessibility actions are performed, quickly.
    
    The change will fix firing of some focus events that contain the wrong event from value. The user visible change is that ChromeVox will not sync focus (thinking it is not a focus triggered from its own action).
    
    Change-Id: I9926e1d0a03f8a70011c7d38d709eb1c77baee26
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1640141
    Commit-Queue: David Tseng <dtseng@chromium.org>
    Reviewed-by: default avatarNektarios Paisios <nektar@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#665585}
    32e39dcd
automation_internal_custom_bindings.cc 82.3 KB