<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [Cocoa] No reliable way to get a snapshot of WKWebView"
   href="https://bugs.webkit.org/show_bug.cgi?id=161450#c52">Comment # 52</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [Cocoa] No reliable way to get a snapshot of WKWebView"
   href="https://bugs.webkit.org/show_bug.cgi?id=161450">bug 161450</a>
              from <span class="vcard"><a class="email" href="mailto:bdakin&#64;apple.com" title="Beth Dakin &lt;bdakin&#64;apple.com&gt;"> <span class="fn">Beth Dakin</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=161450#c51">comment #51</a>)
<span class="quote">&gt; Comment on <span class=""><a href="attachment.cgi?id=301068&amp;action=diff" name="attach_301068" title="Patch">attachment 301068</a> <a href="attachment.cgi?id=301068&amp;action=edit" title="Patch">[details]</a></span>
&gt; Patch
&gt; 
&gt; View in context:
&gt; <a href="https://bugs.webkit.org/attachment.cgi?id=301068&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=301068&amp;action=review</a>
&gt; 
&gt; &gt; Source/WebKit2/ChangeLog:3
&gt; &gt; +        No reliable way to get a snapshot of WKWebView (macOS)
&gt; 
&gt; No need for the macOS in the title because you're adding cross-platform API
&gt; </span >

Fixed.

<span class="quote">&gt; &gt; Source/WebKit2/ChangeLog:13
&gt; &gt; +       It also adds a new API object WKSnapshotConfiguration.
&gt; 
&gt; This is indented wrong.
&gt; </span >

Fixed.

<span class="quote">&gt; &gt; Source/WebKit2/UIProcess/API/Cocoa/WKWebView.h:233
&gt; &gt; +#if TARGET_OS_IPHONE
&gt; &gt; +- (void)takeSnapshotWithConfiguration:(WKSnapshotConfiguration *)snapshotConfiguration completionHandler:(void(^)(UIImage * _Nullable snapshotImage, NSError * _Nullable error))completionHandler WK_API_AVAILABLE(macosx(WK_MAC_TBA), ios(WK_IOS_TBA));
&gt; &gt; +#else
&gt; &gt; +- (void)takeSnapshotWithConfiguration:(WKSnapshotConfiguration *)snapshotConfiguration completionHandler:(void(^)(NSImage * _Nullable snapshotImage, NSError * _Nullable error))completionHandler WK_API_AVAILABLE(macosx(WK_MAC_TBA), ios(WK_IOS_TBA));
&gt; &gt; +#endif
&gt; 
&gt; I wonder if we should accept a null snapshotConfiguration and set
&gt; rectInViewCoordinates to the bounds of the WKWebView and snapshotWidth to
&gt; the width of the bounds of the WKWebView.</span >

I like this! New patch incoming.</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>