• Victor Fei's avatar
    UIA: SelectionItem::get_IsSelected default to return false · 806b1c0c
    Victor Fei authored
    Fix for AXPlatformNodeWin::get_IsSelected (ISelectionItemProvider::
    get_IsSelected) to return false by default if the node supports
    ISelectionItemProvider. Previously, we threw UIA_E_INVALIDOPERATION
    for node that supports ISelectionItemProvider but not explicitly
    marked as selected.
    
    The motivation behind this change is due to Windows Narrator announcing
    "No Item in View" for list items because their ISelectionItemProvider::
    get_IsSelected by default returns UIA_E_INVALIDOPERATION and confuses
    Narrator.
    
    Bug: 844149
    Change-Id: Iafc1c083dd0feb98b8d1a2d3b18c38284105e2e8
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1810060
    Commit-Queue: Victor Fei <vicfei@microsoft.com>
    Reviewed-by: default avatarDominic Mazzoni <dmazzoni@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#698537}
    806b1c0c
list.html 303 Bytes