WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
207398
Handle deprecated APIs in WKImagePreviewViewController
https://bugs.webkit.org/show_bug.cgi?id=207398
Summary
Handle deprecated APIs in WKImagePreviewViewController
Jonathan Bedard
Reported
2020-02-07 12:06:03 PST
We are using some deprecated APIs in WKImagePreviewViewController and we need to allow them. Not sure how our OpenSource build is working at the moment.
Attachments
Patch
(1.54 KB, patch)
2020-02-07 12:08 PST
,
Jonathan Bedard
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Jonathan Bedard
Comment 1
2020-02-07 12:08:09 PST
Created
attachment 390114
[details]
Patch
WebKit Commit Bot
Comment 2
2020-02-07 13:45:56 PST
Comment on
attachment 390114
[details]
Patch Clearing flags on attachment: 390114 Committed
r256057
: <
https://trac.webkit.org/changeset/256057
>
WebKit Commit Bot
Comment 3
2020-02-07 13:45:57 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 4
2020-02-07 13:46:14 PST
<
rdar://problem/59272048
>
Alexey Proskuryakov
Comment 5
2020-02-08 13:01:43 PST
Comment on
attachment 390114
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=390114&action=review
> Source/WebKit/UIProcess/WKImagePreviewViewController.mm:98 > +ALLOW_DEPRECATED_DECLARATIONS_BEGIN > ALLOW_DEPRECATED_IMPLEMENTATIONS_BEGIN > - (NSArray<UIPreviewAction *> *)previewActionItems
Why is this right? Surely there is no need for ALLOW_DEPRECATED_DECLARATIONS_BEGIN around previewActionItems, because it's not even a declaration.
Tim Horton
Comment 6
2020-02-08 15:10:54 PST
Comment on
attachment 390114
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=390114&action=review
>> Source/WebKit/UIProcess/WKImagePreviewViewController.mm:98 >> - (NSArray<UIPreviewAction *> *)previewActionItems > > Why is this right? Surely there is no need for ALLOW_DEPRECATED_DECLARATIONS_BEGIN around previewActionItems, because it's not even a declaration.
It could definitely be tighter (it's about things inside the method body), but also doesn't really matter?
Alexey Proskuryakov
Comment 7
2020-02-08 17:09:23 PST
Usually these annotate code that needs rework. If we don't care about precisely identifying such code, it would be easier to just disable deprecation warnings for the whole project. Or are you saying that everything between these lines needs to be reworked?
Tim Horton
Comment 8
2020-02-08 17:34:55 PST
(In reply to Alexey Proskuryakov from
comment #7
)
> Usually these annotate code that needs rework. If we don't care about > precisely identifying such code, it would be easier to just disable > deprecation warnings for the whole project. > > Or are you saying that everything between these lines needs to be reworked?
More than half, anyway.
Tim Horton
Comment 9
2020-02-08 17:35:50 PST
(In reply to Alexey Proskuryakov from
comment #7
)
> Usually these annotate code that needs rework. If we don't care about > precisely identifying such code, it would be easier to just disable > deprecation warnings for the whole project.
Also, it's ... 10 lines. This seems a little unnecessarily melodramatic :)
Alexey Proskuryakov
Comment 10
2020-02-08 17:59:02 PST
Excuses.
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