[Webkit-unassigned] [Bug 191069] New: [Cocoa] WebKit doesn’t use file coordination when creating file wrapper for dropped file

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Oct 30 10:32:12 PDT 2018


https://bugs.webkit.org/show_bug.cgi?id=191069

            Bug ID: 191069
           Summary: [Cocoa] WebKit doesn’t use file coordination when
                    creating file wrapper for dropped file
           Product: WebKit
           Version: Safari Technology Preview
          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

When dropping a file or folder from Finder into an attachment-element-enabled web view, WebKit immediately initializes an NSFileWrapper instance with the dropped item’s URL. This can fail in some cases, including when the file comes from iCloud Drive and is not yet available locally.

WebKit should use NSFileCoordinator to coordinate reading from the URL, and initialize the NSFileWrapper with the URL passed to the accessor block. It may also need to expose _WKAttachment and/or WKUIDelegatePrivate API to inform clients when an attachment’s file wrapper becomes available (or changes), and have a way to represent an attachment pending coordinated reading.

-- 
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/20181030/a9fa256c/attachment.html>


More information about the webkit-unassigned mailing list