• Dominic Mazzoni's avatar
    Defer AX events to avoid problems with transient focus events. · b9c37a4d
    Dominic Mazzoni authored
    Some dialog boxes, like the accelerator confirmation dialog that appears
    when you press Search+Control+M, focus the dialog and then immediately
    after focus one of the buttons. This was causing ChromeVox to suppress
    information about the context of the dialog.
    
    Fix this by using PostTask to defer all events from Views. This doesn't
    even add any delay, it just pushes the event firing to after the current
    call stack so that transient changes get suppressed.
    
    Manually confirmed that the experience with this particular dialog is
    improved, other dialogs and views seem to continue to work fine.
    
    Bug: 729449
    Change-Id: I278c0c0b1dbdd26a654799fb5b314341942c1373
    Reviewed-on: https://chromium-review.googlesource.com/1176207
    Commit-Queue: Dominic Mazzoni <dmazzoni@chromium.org>
    Reviewed-by: default avatarScott Violet <sky@chromium.org>
    Reviewed-by: default avatarDavid Tseng <dtseng@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#589201}
    b9c37a4d
ax_aura_obj_cache.cc 6.88 KB