Commit 0a54e880 authored by paulmeyer's avatar paulmeyer Committed by Commit bot

Speculative fix for crash in blink::DragData::modifiers.

BUG=671152

Review-Url: https://codereview.chromium.org/2844243003
Cr-Commit-Position: refs/heads/master@{#468184}
parent dbec34d4
...@@ -80,7 +80,12 @@ void WebFrameWidgetBase::DragTargetDragLeave(const WebPoint& point_in_viewport, ...@@ -80,7 +80,12 @@ void WebFrameWidgetBase::DragTargetDragLeave(const WebPoint& point_in_viewport,
const WebPoint& screen_point) { const WebPoint& screen_point) {
DCHECK(current_drag_data_); DCHECK(current_drag_data_);
if (IgnoreInputEvents()) { // TODO(paulmeyer): It shouldn't be possible for |m_currentDragData| to be
// null here, but this is somehow happening (rarely). This suggests that in
// some cases drag-leave is happening before drag-enter, which should be
// impossible. This needs to be investigated further. Once fixed, the extra
// check for |!m_currentDragData| should be removed. (crbug.com/671152)
if (IgnoreInputEvents() || !current_drag_data_) {
CancelDrag(); CancelDrag();
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment