Remove IsReadOnly condition in IsUIAControl for views
We initially added IsUIAControl with a different implementation for web content nodes and views nodes. For web content, we have this great and complete implementation that got refined over time, but for views, we never really updated it - it's basic. Turns out that the value returned by IsUIAControl is incorrect for views that are marked as read-only. For example, click on the "Try it" button in the following link and try to focus the read-only address bar of the new window. It doesn't work. https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_win_open3 My first solution had the intent of unifying the implementations for web content and for views. However, that caused issues with menus and sub-menus when using Narrator, so I instead decided to go with a safer approach - simply remove the IsReadOnly condition. That condition doesn't have its place there and everything works better without. I tried this on Chromium with and without UIA and on Edge, with UIA. Everything still works great! editable one. AX-Relnotes: A read-only omnibox is now accessible to ATs, just like an Bug: N/A Change-Id: Ib551701e0220a3422c989b271ed5edfad15f060e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2490846Reviewed-by:Nektarios Paisios <nektar@chromium.org> Reviewed-by:
Kurt Catti-Schmidt <kschmi@microsoft.com> Reviewed-by:
Jacques Newman <janewman@microsoft.com> Commit-Queue: Benjamin Beaudry <benjamin.beaudry@microsoft.com> Cr-Commit-Position: refs/heads/master@{#820269}
Showing
Please register or sign in to comment