Don't clear kAnchoredDialogKey when an non-focusable widget dismisses
An non-focasable widget will not set its anchor view's kAnchoredDialogKey, but currently a bubble dialog will reset kAnchoredDialogKey when it detaches from its anchor view. This will break the focus traversal path if kAnchoredDialogKey was pointing to a different widget. This CL fixes this issue by resetting kAnchoredDialogKey only if it is pointing to the current bubble. This issue blocks bug 1121399 where a focusable IPH bubble will contest kAnchoredDialogKey of a tab while a non-focusable tab hover card might anchor to it. The hover card will later accidentally detaches the IPH bubble from the tab when it dismisses. Bug: 1121399 Change-Id: Ia7f82ee166eae100cd18ffa816ddf50cf02acba6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2422709Reviewed-by:Wei Li <weili@chromium.org> Commit-Queue: Keren Zhu <kerenzhu@chromium.org> Cr-Commit-Position: refs/heads/master@{#809433}
Showing
Please register or sign in to comment