ozone/wayland: Fix input unresponsiveness after DND sessions
DragDropDelegate implementations, such as WebContents, require that the DragLeave event is fired before DragFinished when the DnD session ends with no actual data transfer (cancelled), e.g: the drop happens on top of a widget that does not accept the data being dragged. Otherwise, it might lead to issues like crbug.com/1109324, where the whole web contents view becomes unresponsive. This patch fixes it by making sure OnDragLeave() is called just before OnDragFinished() when the session ends with a cancellation. R=tonikitoo@igalia.com Test: ozone_unittests --gtest_filter='*DragControllerTest.StartAndCancel*' Bug: 1109324 Change-Id: Idcbdb93ef0187847e2e779f3e4ac568bc594b90d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2318511Reviewed-by:Scott Violet <sky@chromium.org> Reviewed-by:
Antonio Gomes (GMT-4) <tonikitoo@igalia.com> Commit-Queue: Nick Yamane <nickdiego@igalia.com> Auto-Submit: Nick Yamane <nickdiego@igalia.com> Cr-Commit-Position: refs/heads/master@{#792471}
Showing
Please register or sign in to comment