<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:sam&#64;webkit.org" title="Sam Weinig &lt;sam&#64;webkit.org&gt;"> <span class="fn">Sam Weinig</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [iOS] WKPreviewAction conforms to NSCopying but doesn’t override -copyWithZone:"
   href="https://bugs.webkit.org/show_bug.cgi?id=155395">bug 155395</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Attachment #274024 Flags</td>
           <td>review?
           </td>
           <td>review+
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [iOS] WKPreviewAction conforms to NSCopying but doesn’t override -copyWithZone:"
   href="https://bugs.webkit.org/show_bug.cgi?id=155395#c9">Comment # 9</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [iOS] WKPreviewAction conforms to NSCopying but doesn’t override -copyWithZone:"
   href="https://bugs.webkit.org/show_bug.cgi?id=155395">bug 155395</a>
              from <span class="vcard"><a class="email" href="mailto:sam&#64;webkit.org" title="Sam Weinig &lt;sam&#64;webkit.org&gt;"> <span class="fn">Sam Weinig</span></a>
</span></b>
        <pre>Comment on <span class=""><a href="attachment.cgi?id=274024&amp;action=diff" name="attach_274024" title="Patch">attachment 274024</a> <a href="attachment.cgi?id=274024&amp;action=edit" title="Patch">[details]</a></span>
Patch

View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=274024&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=274024&amp;action=review</a>

You should remove the explicit conformance to NSCopying of WKPreviewAction since UIPreviewAction already conforms to it.

<span class="quote">&gt; Source/WebKit2/UIProcess/API/Cocoa/WKPreviewActionItem.mm:45
&gt; +    WKPreviewAction *action = [super copyWithZone:zone];
&gt; +    action-&gt;_identifier = self.identifier;
&gt; +    return action;</span >

Since WKPreviewAction is immutable, this can be implemented as:

    return [self retain];</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>