Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Support File Promise during drag for macOS.
https://bugs.webkit.org/show_bug.cgi?id=165204 rdar://problem/19595567 Reviewed by Tim Horton. Source/WebCore: Adds the support for handling File Promise type during drag. DragData now has the knowledge of the NSFilesPromisePboardType and checks for the data type during drag. * page/mac/DragControllerMac.mm: (WebCore::DragController::dragOperation): * platform/DragData.h: (WebCore::DragData::setFileNames): (WebCore::DragData::fileNames): * platform/mac/DragDataMac.mm: (WebCore::DragData::containsFiles): (WebCore::DragData::numberOfFiles): (WebCore::DragData::asFilenames): (WebCore::DragData::containsCompatibleContent): (WebCore::DragData::containsPromise): (WebCore::DragData::asURL): Source/WebKit/mac: Adds support for dropping a File Promise in a WebView. The implementation uses new File Promise API available in Sierra. * Misc/WebNSPasteboardExtras.mm: (+[NSPasteboard _web_dragTypesForURL]): * WebView/WebView.mm: (-[WebView performDragOperation:]): Source/WebKit2: Adds support for dropping a File Promise in a WKWebView. The implementation uses new File Promise API available in Sierra. * Shared/WebCoreArgumentCoders.cpp: (IPC::ArgumentCoder<DragData>::encode): (IPC::ArgumentCoder<DragData>::decode): * Shared/mac/PasteboardTypes.mm: (WebKit::PasteboardTypes::forURL): * UIProcess/Cocoa/WebViewImpl.h: * UIProcess/Cocoa/WebViewImpl.mm: (WebKit::WebViewImpl::createSandboxExtensionsIfNeeded): (WebKit::WebViewImpl::performDragOperation): (WebKit::maybeCreateSandboxExtensionFromPasteboard): Deleted. (WebKit::createSandboxExtensionsForFileUpload): Deleted. Canonical link: https://commits.webkit.org/183835@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@210287 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
209 additions
and 46 deletions.
- +25 −0 Source/WebCore/ChangeLog
- +1 −1 Source/WebCore/page/mac/DragControllerMac.mm
- +4 −0 Source/WebCore/platform/DragData.h
- +18 −3 Source/WebCore/platform/mac/DragDataMac.mm
- +16 −0 Source/WebKit/mac/ChangeLog
- +3 −0 Source/WebKit/mac/Misc/WebNSPasteboardExtras.mm
- +39 −2 Source/WebKit/mac/WebView/WebView.mm
- +23 −0 Source/WebKit2/ChangeLog
- +5 −0 Source/WebKit2/Shared/WebCoreArgumentCoders.cpp
- +5 −1 Source/WebKit2/Shared/mac/PasteboardTypes.mm
- +1 −0 Source/WebKit2/UIProcess/Cocoa/WebViewImpl.h
- +69 −39 Source/WebKit2/UIProcess/Cocoa/WebViewImpl.mm
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters