Ensure we have native text control ancestor in AXSelection::Select
AXSelection::Select has logic meant to handle selection within an native text field. But when the selection is being set, the base and extent may be the static text descendant of the AXObject associated with the field. In this instance, the logic for text fields is not being used. Fix this by retrieving the native text control ancestor AXObject. Then, to ensure there is no behavior change, set focus on the element after the selection range was successfully set. Bug: 1113650 AX-Relnotes: N/A Change-Id: I5b1db3dcf7d01baf971d5858c936a4e5d168543e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2352898 Commit-Queue: Joanmarie Diggs <jdiggs@igalia.com> Reviewed-by:Nektarios Paisios <nektar@chromium.org> Cr-Commit-Position: refs/heads/master@{#800297}
Showing
Please register or sign in to comment