summaryrefslogtreecommitdiffstats
path: root/components/test_runner/event_sender.cc
diff options
context:
space:
mode:
Diffstat (limited to 'components/test_runner/event_sender.cc')
-rw-r--r--components/test_runner/event_sender.cc18
1 files changed, 11 insertions, 7 deletions
diff --git a/components/test_runner/event_sender.cc b/components/test_runner/event_sender.cc
index 6e1df4f..31867c9 100644
--- a/components/test_runner/event_sender.cc
+++ b/components/test_runner/event_sender.cc
@@ -2594,13 +2594,17 @@ void EventSender::DoMouseUp(const WebMouseEvent& e) {
WebPoint client_point(e.x, e.y);
WebPoint screen_point(e.globalX, e.globalY);
- FinishDragAndDrop(
- e,
- view_->dragTargetDragOver(
- client_point,
- screen_point,
- current_drag_effects_allowed_,
- e.modifiers));
+ blink::WebDragOperation drag_effect = view_->dragTargetDragOver(
+ client_point,
+ screen_point,
+ current_drag_effects_allowed_,
+ e.modifiers);
+
+ // Bail if dragover caused cancellation.
+ if (current_drag_data_.isNull())
+ return;
+
+ FinishDragAndDrop(e, drag_effect);
}
void EventSender::DoMouseMove(const WebMouseEvent& e) {