WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
145690
[iOS] Replace deprecated -[UIDocumentMenuViewController _setIgnoreApplicationEntitlementForImport:]
https://bugs.webkit.org/show_bug.cgi?id=145690
Summary
[iOS] Replace deprecated -[UIDocumentMenuViewController _setIgnoreApplication...
Jon Honeycutt
Reported
2015-06-05 02:44:37 PDT
-[UIDocumentMenuViewController _setIgnoreApplicationEntitlementForImport:] is deprecated.
Attachments
Patch
(
deleted
)
2015-06-05 02:52 PDT
,
Jon Honeycutt
no flags
Details
Patch
(4.80 KB, patch)
2015-06-05 14:49 PDT
,
Jon Honeycutt
no flags
Details
Formatted Diff
Diff
Rebaselined Patch
(4.47 KB, patch)
2016-01-14 09:39 PST
,
Brent Fulgham
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Jon Honeycutt
Comment 1
2015-06-05 02:46:51 PDT
<
rdar://problem/20636577
>
Jon Honeycutt
Comment 2
2015-06-05 02:52:43 PDT
Created
attachment 254349
[details]
Patch
David Kilzer (:ddkilzer)
Comment 3
2015-06-05 06:33:55 PDT
Comment on
attachment 254349
[details]
Patch Unless the new method is supported in iOS 8.x, we need to add a #if version check here.
David Kilzer (:ddkilzer)
Comment 4
2015-06-05 10:57:13 PDT
Comment on
attachment 254349
[details]
Patch As I noted in the previous comment, to support building on iOS 8.x, we need to add version checks: #if __IPHONE_OS_VERSION_MIN_REQUIRED < 90000 // iOS 8 code #else // Mysterious future code #endif
David Kilzer (:ddkilzer)
Comment 5
2015-06-05 12:43:48 PDT
The content of
attachment 254349
[details]
has been deleted by David Kilzer (:ddkilzer) <
ddkilzer@webkit.org
> without providing any reason. The token used to delete this attachment was generated at 2015-06-05 12:43:37 PDT.
Jon Honeycutt
Comment 6
2015-06-05 14:49:41 PDT
Created
attachment 254390
[details]
Patch
Brent Fulgham
Comment 7
2016-01-13 14:08:55 PST
Comment on
attachment 254390
[details]
Patch This looks correct. I'll attempt to merge and land if it builds and runs.
Brent Fulgham
Comment 8
2016-01-14 09:39:56 PST
Created
attachment 268977
[details]
Rebaselined Patch
mitz
Comment 9
2016-01-16 00:54:33 PST
Comment on
attachment 268977
[details]
Rebaselined Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=268977&action=review
> Source/WebKit2/Platform/spi/ios/UIKitSPI.h:88 > #import <UIKit/UIDocumentMenuViewController_Private.h> > #else > @interface UIDocumentMenuViewController () > -@property (nonatomic, assign, setter = _setIgnoreApplicationEntitlementForImport:, getter = _ignoreApplicationEntitlementForImport) BOOL _ignoreApplicationEntitlementForImport; > +- (instancetype)_initIgnoringApplicationEntitlementForImportOfTypes:(NSArray *)types; > @end > #endif
I suggest that you address the FIXME on line 81 instead of doing this here.
> Source/WebKit2/UIProcess/ios/forms/WKFileUploadPanel.mm:378 > // FIXME: Remove this check and the fallback code when a new SDK is available. <
rdar://problem/20150072
> > - if ([UIDocumentMenuViewController instancesRespondToSelector:@selector(_setIgnoreApplicationEntitlementForImport:)]) { > + if ([UIDocumentMenuViewController instancesRespondToSelector:@selector(_initIgnoringApplicationEntitlementForImportOfTypes:)]) {
You should address the FIXME instead of changing this.
> Source/WebKit2/UIProcess/ios/forms/WKFileUploadPanel.mm:518 > + _documentMenuController = adoptNS([[UIDocumentMenuViewController alloc] _initIgnoringApplicationEntitlementForImportOfTypes:[self _documentPickerMenuMediaTypes]]);
You can write self._documentPickerMenuMediaTypes instead of using brackets.
WebKit Commit Bot
Comment 10
2016-01-16 11:03:21 PST
Comment on
attachment 268977
[details]
Rebaselined Patch Clearing flags on attachment: 268977 Committed
r195171
: <
http://trac.webkit.org/changeset/195171
>
WebKit Commit Bot
Comment 11
2016-01-16 11:03:25 PST
All reviewed patches have been landed. Closing bug.
mitz
Comment 12
2016-01-16 11:07:18 PST
Kind of disappointing that none of my comments were addressed.
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