WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
188583
[macOS] [WK2] Add infrastructure to test receiving file promises on drop
https://bugs.webkit.org/show_bug.cgi?id=188583
Summary
[macOS] [WK2] Add infrastructure to test receiving file promises on drop
Wenson Hsieh
Reported
2018-08-14 15:47:25 PDT
Add infrastructure to test receiving file promises on drop
Attachments
Patch
(34.85 KB, patch)
2018-08-14 16:43 PDT
,
Wenson Hsieh
aestes
: review+
Details
Formatted Diff
Diff
Archive of layout-test-results from ews206 for win-future
(12.89 MB, application/zip)
2018-08-16 17:42 PDT
,
EWS Watchlist
no flags
Details
Patch for landing
(34.74 KB, patch)
2018-08-16 21:19 PDT
,
Wenson Hsieh
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Wenson Hsieh
Comment 1
2018-08-14 16:43:19 PDT
Created
attachment 347129
[details]
Patch
EWS Watchlist
Comment 2
2018-08-16 17:42:42 PDT
Comment hidden (obsolete)
Comment on
attachment 347129
[details]
Patch
Attachment 347129
[details]
did not pass win-ews (win): Output:
https://webkit-queues.webkit.org/results/8886279
New failing tests: imported/blink/transitions/unprefixed-transform.html
EWS Watchlist
Comment 3
2018-08-16 17:42:53 PDT
Comment hidden (obsolete)
Created
attachment 347328
[details]
Archive of layout-test-results from ews206 for win-future The attached test failures were seen while running run-webkit-tests on the win-ews. Bot: ews206 Port: win-future Platform: CYGWIN_NT-6.1-2.9.0-0.318-5-3-x86_64-64bit
Andy Estes
Comment 4
2018-08-16 20:30:03 PDT
Comment on
attachment 347129
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=347129&action=review
I'm not sure your unique filename finding logic in copyFile() is correct, but otherwise looks great! r=me
> Tools/TestWebKitAPI/mac/TestFilePromiseReceiver.mm:48 > + _promisedTypeIdentifiers = adoptNS(promisedTypeIdentifiers.copy);
I don't think dot syntax makes sense for -copy. It's an operation, not a property.
> Tools/TestWebKitAPI/mac/TestFilePromiseReceiver.mm:101 > + NSString *adjustedFileName = suffix ? fileNameWithNumericSuffix(fileName, suffix) : fileName;
Won't this try to copy to the same existing file path twice before appending a numeric suffix?
Wenson Hsieh
Comment 5
2018-08-16 20:33:11 PDT
Comment on
attachment 347129
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=347129&action=review
Thanks for the review!
>> Tools/TestWebKitAPI/mac/TestFilePromiseReceiver.mm:48 >> + _promisedTypeIdentifiers = adoptNS(promisedTypeIdentifiers.copy); > > I don't think dot syntax makes sense for -copy. It's an operation, not a property.
Sounds good — changed to [] notation.
>> Tools/TestWebKitAPI/mac/TestFilePromiseReceiver.mm:101 >> + NSString *adjustedFileName = suffix ? fileNameWithNumericSuffix(fileName, suffix) : fileName; > > Won't this try to copy to the same existing file path twice before appending a numeric suffix?
Ah, good catch! Fixed.
Wenson Hsieh
Comment 6
2018-08-16 21:19:07 PDT
Created
attachment 347347
[details]
Patch for landing
WebKit Commit Bot
Comment 7
2018-08-16 21:58:56 PDT
Comment on
attachment 347347
[details]
Patch for landing Clearing flags on attachment: 347347 Committed
r234976
: <
https://trac.webkit.org/changeset/234976
>
Radar WebKit Bug Importer
Comment 8
2018-08-17 06:06:26 PDT
<
rdar://problem/43421379
>
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