RESOLVED FIXED 184237
[Mac] Prioritize file promises over filenames during drag and drop
https://bugs.webkit.org/show_bug.cgi?id=184237
Summary [Mac] Prioritize file promises over filenames during drag and drop
Andy Estes
Reported 2018-04-02 09:50:22 PDT
[Mac] Prioritize file promises over filenames during drag and drop
Attachments
Patch (12.36 KB, patch)
2018-04-02 10:09 PDT, Andy Estes
no flags
Archive of layout-test-results from ews102 for mac-sierra (2.24 MB, application/zip)
2018-04-02 11:09 PDT, EWS Watchlist
no flags
Archive of layout-test-results from ews114 for mac-sierra (2.93 MB, application/zip)
2018-04-02 11:47 PDT, EWS Watchlist
no flags
Patch (14.28 KB, patch)
2018-04-03 11:11 PDT, Andy Estes
no flags
Andy Estes
Comment 1 2018-04-02 09:51:05 PDT
Andy Estes
Comment 2 2018-04-02 10:09:16 PDT
Wenson Hsieh
Comment 3 2018-04-02 10:46:29 PDT
Comment on attachment 336992 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=336992&action=review > Source/WebCore/platform/mac/DragDataMac.mm:179 > + return fileNames(); Nice! Looks like FileInputType::receiveDroppedFiles uses this when dropping files on a file input. Would this suggest that dropping file promises (without corresponding filenames in the pasteboard) into <input type=file> was broken? Seems like it would be good to add a test case for this if so.
Andy Estes
Comment 4 2018-04-02 10:54:18 PDT
(In reply to Wenson Hsieh from comment #3) > Comment on attachment 336992 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=336992&action=review > > > Source/WebCore/platform/mac/DragDataMac.mm:179 > > + return fileNames(); > > Nice! > > Looks like FileInputType::receiveDroppedFiles uses this when dropping files > on a file input. Would this suggest that dropping file promises (without > corresponding filenames in the pasteboard) into <input type=file> was > broken? Seems like it would be good to add a test case for this if so. It wasn't broken. This function would return fileNames() by default if there was no filename type on the pasteboard. We have a test for this, too, which is sadly now failing on Mac EWS :( I cleared my r? to investigate why.
Wenson Hsieh
Comment 5 2018-04-02 11:05:54 PDT
(In reply to Andy Estes from comment #4) > (In reply to Wenson Hsieh from comment #3) > > Comment on attachment 336992 [details] > > Patch > > > > View in context: > > https://bugs.webkit.org/attachment.cgi?id=336992&action=review > > > > > Source/WebCore/platform/mac/DragDataMac.mm:179 > > > + return fileNames(); > > > > Nice! > > > > Looks like FileInputType::receiveDroppedFiles uses this when dropping files > > on a file input. Would this suggest that dropping file promises (without > > corresponding filenames in the pasteboard) into <input type=file> was > > broken? Seems like it would be good to add a test case for this if so. > > It wasn't broken. This function would return fileNames() by default if there > was no filename type on the pasteboard. We have a test for this, too, which > is sadly now failing on Mac EWS :( > > I cleared my r? to investigate why. I see. Thanks for the explanation!
EWS Watchlist
Comment 6 2018-04-02 11:09:47 PDT Comment hidden (obsolete)
EWS Watchlist
Comment 7 2018-04-02 11:09:48 PDT Comment hidden (obsolete)
EWS Watchlist
Comment 8 2018-04-02 11:47:09 PDT Comment hidden (obsolete)
EWS Watchlist
Comment 9 2018-04-02 11:47:10 PDT Comment hidden (obsolete)
Andy Estes
Comment 10 2018-04-03 11:11:26 PDT
WebKit Commit Bot
Comment 11 2018-04-03 13:40:17 PDT
Comment on attachment 337092 [details] Patch Clearing flags on attachment: 337092 Committed r230221: <https://trac.webkit.org/changeset/230221>
WebKit Commit Bot
Comment 12 2018-04-03 13:40:19 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.