Fix <rdar://problem/5652740> Crash occurs at WebCore::Widget::getView() after draggin...
[WebKit-https.git] / WebCore / page / DragController.cpp
index bf7a57fc0ab109a83a11693b339719989844518f..ecca5e764024918bb2bf7fb74d8199d475fd2675 100644 (file)
@@ -175,7 +175,7 @@ DragOperation DragController::dragUpdated(DragData* dragData)
 bool DragController::performDrag(DragData* dragData)
 {   
     ASSERT(dragData);
-    ASSERT(m_document == m_page->mainFrame()->documentAtPoint(dragData->clientPosition()));
+    m_document = m_page->mainFrame()->documentAtPoint(dragData->clientPosition());
     if (m_isHandlingDrag) {
         ASSERT(m_dragDestinationAction & DragDestinationActionDHTML);
         m_client->willPerformDragDestinationAction(DragDestinationActionDHTML, dragData);