Dismiss tooltips from web content when web content is occluded or hidden
Hides tooltips from web content when the Chrome_RenderWidgetHostHWND is being reparented on Windows. Normally, mouse input messages over the Chrome_RenderWidgetHostHWND are forwarded to the host window, where they are processed as events and used by the tooltip controller to manage tooltip visibility. However, when the legacy Chrome_RenderWidgetHostHWND is hidden or occluded, it is reparented to a global hidden window, and messages are no longer forwarded to the host window. If a WM_MOUSELEAVE message did not arrive before this happens, the tooltip controller would not handle it, and any open tooltips would stay open. Thus, we must explicitly close tooltips during this reparenting step. Bug: 724538 Change-Id: I4e4273ed451ff97c49b146e6b0499db3951baf88 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2242951Reviewed-by:Scott Violet <sky@chromium.org> Auto-Submit: Brian Liu Xu <brx@microsoft.com> Commit-Queue: Brian Liu Xu <brx@microsoft.com> Cr-Commit-Position: refs/heads/master@{#803984}
Showing
Please register or sign in to comment