NEW 191069
[Cocoa] WebKit doesn’t use file coordination when creating file wrapper for dropped file
https://bugs.webkit.org/show_bug.cgi?id=191069
Summary [Cocoa] WebKit doesn’t use file coordination when creating file wrapper for d...
mitz
Reported 2018-10-30 10:32:12 PDT
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.
Attachments
mitz
Comment 1 2018-10-30 10:35:06 PDT
mitz
Comment 2 2018-12-05 11:56:23 PST
This can probably use the “file wrapper invalidated” mechanism that was added for editable images.
Note You need to log in before you can comment on or make changes to this bug.