WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
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
Details
Formatted Diff
Diff
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
Details
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
Details
Patch
(14.28 KB, patch)
2018-04-03 11:11 PDT
,
Andy Estes
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Andy Estes
Comment 1
2018-04-02 09:51:05 PDT
rdar://problem/38278076
Andy Estes
Comment 2
2018-04-02 10:09:16 PDT
Created
attachment 336992
[details]
Patch
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)
Comment on
attachment 336992
[details]
Patch
Attachment 336992
[details]
did not pass mac-ews (mac): Output:
http://webkit-queues.webkit.org/results/7179385
New failing tests: editing/pasteboard/file-input-files-access-promise.html
EWS Watchlist
Comment 7
2018-04-02 11:09:48 PDT
Comment hidden (obsolete)
Created
attachment 337003
[details]
Archive of layout-test-results from ews102 for mac-sierra The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews102 Port: mac-sierra Platform: Mac OS X 10.12.6
EWS Watchlist
Comment 8
2018-04-02 11:47:09 PDT
Comment hidden (obsolete)
Comment on
attachment 336992
[details]
Patch
Attachment 336992
[details]
did not pass mac-debug-ews (mac): Output:
http://webkit-queues.webkit.org/results/7179632
New failing tests: editing/pasteboard/file-input-files-access-promise.html
EWS Watchlist
Comment 9
2018-04-02 11:47:10 PDT
Comment hidden (obsolete)
Created
attachment 337011
[details]
Archive of layout-test-results from ews114 for mac-sierra The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews114 Port: mac-sierra Platform: Mac OS X 10.12.6
Andy Estes
Comment 10
2018-04-03 11:11:26 PDT
Created
attachment 337092
[details]
Patch
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.
Top of Page
Format For Printing
XML
Clone This Bug