• Aaron Leventhal's avatar
    Do not expose ROLE_SYSTEM_WINDOW for our root object · 51332db4
    Aaron Leventhal authored
    Do not return ROLE_SYSTEM_WINDOW ourselves as that is a special MSAA
    system role used to indicate a real native window object. It is
    automatically created by oleacc.dll as a parent of the root of our
    hierarchy, matching the HWND.
    
    For AX_ROLE_WINDOW, we should expose something similar to what Firefox
    exposes, namely ROLE_SYSTEM_APPLICATION.
    
    This helps NVDA not read superfluous text when the user navigates
    to the toolbar or location bar.
    
    Bug: 794931
    Change-Id: I123f07cb477304da1f016d65ea8c2b23b7a92ef4
    Reviewed-on: https://chromium-review.googlesource.com/826866Reviewed-by: default avatarDominic Mazzoni <dmazzoni@chromium.org>
    Commit-Queue: Aaron Leventhal <aleventhal@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#524102}
    51332db4
native_view_accessibility_win_unittest.cc 10.8 KB