Commit 18fff928 authored by enrica@apple.com's avatar enrica@apple.com

Dragging text in a WebKit2 window results in a copy instead of a move.

https://bugs.webkit.org/show_bug.cgi?id=56772
<rdar://problem/9165140>

Reviewed by Darin Adler.

cleanupAfterSystemDrag cannot call dragEnd in WebKit2, since
the call to startDrag is asynchronous.
        
* page/mac/DragControllerMac.mm:
(WebCore::DragController::cleanupAfterSystemDrag):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83308 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 07455fa6
2011-04-08 Enrica Casucci <enrica@apple.com>
Reviewed by Darin Adler.
Dragging text in a WebKit2 window results in a copy instead of a move.
https://bugs.webkit.org/show_bug.cgi?id=56772
<rdar://problem/9165140>
cleanupAfterSystemDrag cannot call dragEnd in WebKit2, since
the call to startDrag is asynchronous.
* page/mac/DragControllerMac.mm:
(WebCore::DragController::cleanupAfterSystemDrag):
2011-04-05 Dimitri Glazkov <dglazkov@chromium.org>
Reviewed by Darin Adler.
......@@ -72,7 +72,10 @@ void DragController::cleanupAfterSystemDrag()
// Drag has ended, dragEnded *should* have been called, however it is possible
// for the UIDelegate to take over the drag, and fail to send the appropriate
// drag termination event. As dragEnded just resets drag variables, we just
// call it anyway to be on the safe side
// call it anyway to be on the safe side.
// We don't want to do this for WebKit2, since the client call to start the drag
// is asynchronous.
if (m_page->mainFrame()->view()->platformWidget())
dragEnded();
}
......
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