WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
157291
File Upload: Photo upload name is always generic (image.jpg)
https://bugs.webkit.org/show_bug.cgi?id=157291
Summary
File Upload: Photo upload name is always generic (image.jpg)
Jiewen Tan
Reported
2016-05-02 18:12:09 PDT
File Upload: Photo upload name is always generic (image.jpg)
Attachments
Patch
(7.01 KB, patch)
2016-05-02 18:21 PDT
,
Jiewen Tan
no flags
Details
Formatted Diff
Diff
Patch
(7.98 KB, patch)
2016-05-02 20:48 PDT
,
Jiewen Tan
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Jiewen Tan
Comment 1
2016-05-02 18:12:40 PDT
<
rdar://problem/12353008
>
Jiewen Tan
Comment 2
2016-05-02 18:21:34 PDT
Created
attachment 277957
[details]
Patch
Joseph Pecoraro
Comment 3
2016-05-02 18:45:44 PDT
Comment on
attachment 277957
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=277957&action=review
Rest of the patch looks good to me.
> Source/WebKit2/Platform/spi/ios/PhotosSPI.h:34 > +#if USE(APPLE_INTERNAL_SDK) > + > +#import <Photos/Photos_Private.h> > + > +#endif
Seems this should be defining the SPI if someone is building without the Internal SDK. Something like: ---- #if USE(APPLE_INTERNAL_SDK) ... #else @class PHAssetOriginalMetadataProperties; @interface PHAsset () - (PHAssetOriginalMetadataProperties *)originalMetadataProperties; - (void)fetchPropertySetsIfNeeded; @end #endif ---- Whatever is enough to get the iso-sim bot building!
> Source/WebKit2/UIProcess/ios/forms/WKFileUploadPanel.mm:739 > + [result[0] fetchPropertySetsIfNeeded]; > + NSString *originalFilename = [[result[0] originalMetadataProperties] originalFilename]; > + ASSERT(originalFilename);
This code is doing a lot of result[0], which is probably non-optimal. Could that be stored into a temporary variable? PHAsset *firstAsset = result[0];
Jiewen Tan
Comment 4
2016-05-02 20:48:34 PDT
Created
attachment 277970
[details]
Patch
WebKit Commit Bot
Comment 5
2016-05-03 18:03:19 PDT
Comment on
attachment 277970
[details]
Patch Clearing flags on attachment: 277970 Committed
r200395
: <
http://trac.webkit.org/changeset/200395
>
WebKit Commit Bot
Comment 6
2016-05-03 18:03:23 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