[Webkit-unassigned] [Bug 188903] New: [Cocoa] Exception (fileType 'dyn.agq8u' is not a valid UTI) raised when dragging an attachment whose file wrapper is a directory
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Aug 23 15:30:41 PDT 2018
https://bugs.webkit.org/show_bug.cgi?id=188903
Bug ID: 188903
Summary: [Cocoa] Exception (fileType 'dyn.agq8u' is not a valid
UTI) raised when dragging an attachment whose file
wrapper is a directory
Product: WebKit
Version: Other
Hardware: Unspecified
OS: Unspecified
Status: NEW
Keywords: NeedsRadar
Severity: Normal
Priority: P2
Component: HTML Editing
Assignee: webkit-unassigned at lists.webkit.org
Reporter: mitz at webkit.org
CC: wenson_hsieh at apple.com
After using -[WebView _insertAttachmentWithFileWrapper:contentType:options:completion:], passing a NSFileWrapper made from a directory (and nil for the rest of the arguments), dragging the attachment out of the web view causes an exception to be raised:
Exception Name: NSInvalidArgumentException
Description: fileType 'dyn.agq8u' is not a valid UTI
User Info: (null)
0 CoreFoundation 0x00007fff3a1f9e4c __exceptionPreprocess + 291
1 libobjc.A.dylib 0x00007fff67ed9efb objc_exception_throw + 48
2 AppKit 0x00007fff381a8759 -[NSFilePromiseProvider init] + 0
3 WebKit 0x000000010139555d WebKit::WebViewImpl::startDrag(WebCore::DragItem const&, WebKit::ShareableBitmap::Handle const&)
+ 667
4 WebKit 0x00000001012fa07a void IPC::handleMessage<Messages::WebPageProxy::StartDrag, WebKit::WebPageProxy, void (WebKit::WebPageProxy::*)(WebCore::DragItem const&, WebKit::ShareableBitmap::Handle const&)>(IPC::Decoder&, WebKit::WebPageProxy*, void (WebKit::WebPageProxy::*)(WebCore::DragItem const&, WebKit::ShareableBitmap::Handle const&))
+ 264
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180823/88390065/attachment-0001.html>
More information about the webkit-unassigned
mailing list