<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>207398</bug_id>
          
          <creation_ts>2020-02-07 12:06:03 -0800</creation_ts>
          <short_desc>Handle deprecated APIs in WKImagePreviewViewController</short_desc>
          <delta_ts>2020-02-08 17:59:02 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jonathan Bedard">jbedard</reporter>
          <assigned_to name="Jonathan Bedard">jbedard</assigned_to>
          <cc>ap</cc>
    
    <cc>commit-queue</cc>
    
    <cc>krollin</cc>
    
    <cc>thorton</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1616290</commentid>
    <comment_count>0</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2020-02-07 12:06:03 -0800</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1616292</commentid>
    <comment_count>1</comment_count>
      <attachid>390114</attachid>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2020-02-07 12:08:09 -0800</bug_when>
    <thetext>Created attachment 390114
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1616343</commentid>
    <comment_count>2</comment_count>
      <attachid>390114</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2020-02-07 13:45:56 -0800</bug_when>
    <thetext>Comment on attachment 390114
Patch

Clearing flags on attachment: 390114

Committed r256057: &lt;https://trac.webkit.org/changeset/256057&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1616344</commentid>
    <comment_count>3</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2020-02-07 13:45:57 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1616345</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-02-07 13:46:14 -0800</bug_when>
    <thetext>&lt;rdar://problem/59272048&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1616583</commentid>
    <comment_count>5</comment_count>
      <attachid>390114</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2020-02-08 13:01:43 -0800</bug_when>
    <thetext>Comment on attachment 390114
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=390114&amp;action=review

&gt; Source/WebKit/UIProcess/WKImagePreviewViewController.mm:98
&gt; +ALLOW_DEPRECATED_DECLARATIONS_BEGIN
&gt;  ALLOW_DEPRECATED_IMPLEMENTATIONS_BEGIN
&gt;  - (NSArray&lt;UIPreviewAction *&gt; *)previewActionItems

Why is this right? Surely there is no need for ALLOW_DEPRECATED_DECLARATIONS_BEGIN around previewActionItems, because it&apos;s not even a declaration.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1616618</commentid>
    <comment_count>6</comment_count>
      <attachid>390114</attachid>
    <who name="Tim Horton">thorton</who>
    <bug_when>2020-02-08 15:10:54 -0800</bug_when>
    <thetext>Comment on attachment 390114
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=390114&amp;action=review

&gt;&gt; Source/WebKit/UIProcess/WKImagePreviewViewController.mm:98
&gt;&gt;  - (NSArray&lt;UIPreviewAction *&gt; *)previewActionItems
&gt; 
&gt; Why is this right? Surely there is no need for ALLOW_DEPRECATED_DECLARATIONS_BEGIN around previewActionItems, because it&apos;s not even a declaration.

It could definitely be tighter (it&apos;s about things inside the method body), but also doesn&apos;t really matter?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1616626</commentid>
    <comment_count>7</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2020-02-08 17:09:23 -0800</bug_when>
    <thetext>Usually these annotate code that needs rework. If we don&apos;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?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1616635</commentid>
    <comment_count>8</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2020-02-08 17:34:55 -0800</bug_when>
    <thetext>(In reply to Alexey Proskuryakov from comment #7)
&gt; Usually these annotate code that needs rework. If we don&apos;t care about
&gt; precisely identifying such code, it would be easier to just disable
&gt; deprecation warnings for the whole project.
&gt; 
&gt; Or are you saying that everything between these lines needs to be reworked?

More than half, anyway.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1616636</commentid>
    <comment_count>9</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2020-02-08 17:35:50 -0800</bug_when>
    <thetext>(In reply to Alexey Proskuryakov from comment #7)
&gt; Usually these annotate code that needs rework. If we don&apos;t care about
&gt; precisely identifying such code, it would be easier to just disable
&gt; deprecation warnings for the whole project.

Also, it&apos;s ... 10 lines. This seems a little unnecessarily melodramatic :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1616641</commentid>
    <comment_count>10</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2020-02-08 17:59:02 -0800</bug_when>
    <thetext>Excuses.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>390114</attachid>
            <date>2020-02-07 12:08:09 -0800</date>
            <delta_ts>2020-02-07 13:45:56 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-207398-20200207120803.patch</filename>
            <type>text/plain</type>
            <size>1580</size>
            <attacher name="Jonathan Bedard">jbedard</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJLaXQvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFNvdXJjZS9XZWJL
aXQvQ2hhbmdlTG9nCShyZXZpc2lvbiAyNTYwNTApCisrKyBTb3VyY2UvV2ViS2l0L0NoYW5nZUxv
Zwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE1IEBACisyMDIwLTAyLTA3ICBKb25hdGhhbiBC
ZWRhcmQgIDxqYmVkYXJkQGFwcGxlLmNvbT4KKworICAgICAgICBIYW5kbGUgZGVwcmVjYXRlZCBB
UElzIGluIFdLSW1hZ2VQcmV2aWV3Vmlld0NvbnRyb2xsZXIKKyAgICAgICAgaHR0cHM6Ly9idWdz
LndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTIwNzM5OAorCisgICAgICAgIFJldmlld2VkIGJ5
IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgIE5vIG5ldyB0ZXN0cywgYnVpbGQgZml4LgorCisg
ICAgICAgICogVUlQcm9jZXNzL1dLSW1hZ2VQcmV2aWV3Vmlld0NvbnRyb2xsZXIubW06CisgICAg
ICAgICgtW1dLSW1hZ2VQcmV2aWV3Vmlld0NvbnRyb2xsZXIgcHJldmlld0FjdGlvbkl0ZW1zXSk6
IEFkZCBkZXByZWNhdGlvbiBtYWNyb3MuCisKIDIwMjAtMDItMDcgIEthdGUgQ2hlbmV5ICA8a2F0
aGVyaW5lX2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UVOVEFUSU9OU19FTkQKIAogICAgIHJldHVybiBwcmV2aWV3QWN0
aW9uczsKIH0KK0FMTE9XX0RFUFJFQ0FURURfSU1QTEVNRU5UQVRJT05TX0VORAorQUxMT1dfREVQ
UkVDQVRFRF9ERUNMQVJBVElPTlNfRU5ECiAjZW5kaWYKIAogQGVuZAo=
</data>

          </attachment>
      

    </bug>

</bugzilla>