| Index: third_party/WebKit/Source/core/page/DragController.cpp
|
| diff --git a/third_party/WebKit/Source/core/page/DragController.cpp b/third_party/WebKit/Source/core/page/DragController.cpp
|
| index 169ca9765a2a29834281a3ad7c7d66cc08661330..47cc5b8fa1ffd19df63cb44eb16c2553f75bd5c0 100644
|
| --- a/third_party/WebKit/Source/core/page/DragController.cpp
|
| +++ b/third_party/WebKit/Source/core/page/DragController.cpp
|
| @@ -243,7 +243,7 @@ bool DragController::performDrag(DragData* dragData)
|
| // Sending an event can result in the destruction of the view and part.
|
| DataTransfer* dataTransfer = createDraggingDataTransfer(DataTransferReadable, dragData);
|
| dataTransfer->setSourceOperation(dragData->draggingSourceOperationMask());
|
| - preventedDefault = mainFrame->eventHandler().performDragAndDrop(createMouseEvent(dragData), dataTransfer);
|
| + preventedDefault = mainFrame->eventHandler().performDragAndDrop(createMouseEvent(dragData), dataTransfer) != WebInputEventResult::NotHandled;
|
| dataTransfer->setAccessPolicy(DataTransferNumb); // Invalidate clipboard here for security
|
| }
|
| if (preventedDefault) {
|
| @@ -602,7 +602,7 @@ bool DragController::tryDHTMLDrag(DragData* dragData, DragOperation& operation)
|
| dataTransfer->setSourceOperation(srcOpMask);
|
|
|
| PlatformMouseEvent event = createMouseEvent(dragData);
|
| - if (!mainFrame->eventHandler().updateDragAndDrop(event, dataTransfer)) {
|
| + if (mainFrame->eventHandler().updateDragAndDrop(event, dataTransfer) == WebInputEventResult::NotHandled) {
|
| dataTransfer->setAccessPolicy(DataTransferNumb); // invalidate clipboard here for security
|
| return false;
|
| }
|
|
|