Drag cannot start if no drag data is available in the Pasteboard.
authorenrica@apple.com <enrica@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 19 May 2016 22:19:48 +0000 (22:19 +0000)
committerenrica@apple.com <enrica@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 19 May 2016 22:19:48 +0000 (22:19 +0000)
commit5296eda9c3febd68fdc2641ef185de71882e3147
treea9bd643d4f93734fb0d5791683b19c4284c6df9b
parent2c96132befb3092aaea29b94b40442fa2b40b126
Drag cannot start if no drag data is available in the Pasteboard.
https://bugs.webkit.org/show_bug.cgi?id=157911
rdar://problem/24577706

Reviewed by Tim Horton.

Source/WebKit/mac:

* WebView/WebHTMLView.mm:
(+[WebHTMLView _dummyPasteboardType]):
(-[WebHTMLView dragImage:at:offset:event:pasteboard:source:slideBack:]):
* WebView/WebHTMLViewPrivate.h:
* WebView/WebView.mm:
(-[WebView _registerDraggedTypes]):

Source/WebKit2:

Setting dummy data to allow drag to start.

* Shared/mac/PasteboardTypes.h:
* Shared/mac/PasteboardTypes.mm:
* UIProcess/Cocoa/WebViewImpl.mm:
(WebKit::WebViewImpl::registerDraggedTypes):
(WebKit::WebViewImpl::dragImageForView):

LayoutTests:

* fast/events/draggable-div-nodata-expected.txt: Added.
* fast/events/draggable-div-nodata.html: Added.
* platform/ios-simulator/TestExpectations
* platform/mac-wk2/TestExpectations

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@201189 268f45cc-cd09-0410-ab3c-d52691b4dbfc
13 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/events/draggable-div-nodata-expected.txt [new file with mode: 0644]
LayoutTests/fast/events/draggable-div-nodata.html [new file with mode: 0644]
LayoutTests/platform/ios-simulator/TestExpectations
LayoutTests/platform/mac-wk2/TestExpectations
Source/WebKit/mac/ChangeLog
Source/WebKit/mac/WebView/WebHTMLView.mm
Source/WebKit/mac/WebView/WebHTMLViewPrivate.h
Source/WebKit/mac/WebView/WebView.mm
Source/WebKit2/ChangeLog
Source/WebKit2/Shared/mac/PasteboardTypes.h
Source/WebKit2/Shared/mac/PasteboardTypes.mm
Source/WebKit2/UIProcess/Cocoa/WebViewImpl.mm