Skip to content
Commit 0d976763 authored by minch's avatar minch Committed by Chromium LUCI CQ
Browse files

back_gesture: Add a test to guard destroying window during drag

Adding a test to make sure no crash happens if the window being
destroyed while dragging the back gesture affordance from the left.
OnTouchEvent(ui::TouchEvent* event) should always been triggered with a
valid event target.
SendBackEvent(const gfx::Point& screen_location) is able to handle the
case if the window has been destroyed.

Bug: 1159634
Change-Id: I4cf9612642f53c930b6570724565e2c6c6b637f3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3004171


Reviewed-by: default avatarXiaoqian Dai <xdai@chromium.org>
Commit-Queue: Min Chen <minch@chromium.org>
Cr-Commit-Position: refs/heads/master@{#898409}
parent 8647ab0f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment