[a11y] Handle a widget destroyed for GetIndexInParent
This CL handles the case that a widget is destroyed and its content view is alive when GetIndexInParent is called with the view. For instance, OmniboxPopupContentsView is not destroyed even though |popup_| widget is destroyed and Orca calls atk_object_get_index_in_parent on the view. Since it doesn't on the children list, it meets DCHECK from AXPlatformNodeBase::GetIndexInParent(). Since GetParent() returns the application node for views if it doesn't have the parent, checking the parent doesn't work for this case. This change overrides GetIndexInParent at AXPlatformNodeAuraLinux and before calling AXPlatformNodeBase::GetIndexInParent() it checks if the node is valid. AX-Relnotes: n/a. Bug: 1122523 Change-Id: Iba6c8cb852a8e91c775bf5f8c14bc54e83e15643 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2379395 Commit-Queue: Nektarios Paisios <nektar@chromium.org> Reviewed-by:Nektarios Paisios <nektar@chromium.org> Cr-Commit-Position: refs/heads/master@{#803455}
Showing
Please register or sign in to comment