Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(475)

Unified Diff: third_party/WebKit/Source/core/input/MouseEventManager.cpp

Issue 2759603002: Check detached status before attempting to clear drag transfer state (reland.) (Closed)
Patch Set: rebased upto r458127 Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/events/resources/iframe-drag-dragend-detaches.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/input/MouseEventManager.cpp
diff --git a/third_party/WebKit/Source/core/input/MouseEventManager.cpp b/third_party/WebKit/Source/core/input/MouseEventManager.cpp
index 8d2c670cd796112fce75c2bf9b56adadc99b660b..802b434398571b4a76d8cc64f8df4e9c83421b66 100644
--- a/third_party/WebKit/Source/core/input/MouseEventManager.cpp
+++ b/third_party/WebKit/Source/core/input/MouseEventManager.cpp
@@ -945,6 +945,8 @@ WebInputEventResult MouseEventManager::dispatchDragEvent(
}
void MouseEventManager::clearDragDataTransfer() {
+ if (!m_frame->page())
+ return;
if (dragState().m_dragDataTransfer) {
dragState().m_dragDataTransfer->clearDragImage();
dragState().m_dragDataTransfer->setAccessPolicy(DataTransferNumb);
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/events/resources/iframe-drag-dragend-detaches.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698