<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#c59">Comment # 59</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:mitz&#64;webkit.org" title="mitz&#64;webkit.org &lt;mitz&#64;webkit.org&gt;"> <span class="fn">mitz&#64;webkit.org</span></a>
</span></b>
        <pre>Comment on <span class=""><a href="attachment.cgi?id=301971&amp;action=diff" name="attach_301971" title="Patch">attachment 301971</a> <a href="attachment.cgi?id=301971&amp;action=edit" title="Patch">[details]</a></span>
Patch

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

<span class="quote">&gt; Source/WebKit2/UIProcess/API/Cocoa/WKSnapshotConfiguration.h:39
&gt; + &#64;discussion This rect should be contained within WKWebView's bounds. If the rect is not set, 
&gt; + the WKWebView's bounds will be used.</span >

I think the comment can be more explicit (and also make it clear how to reset the property). Namely, it can say that if set to the null rect, the view’s bounds will be used, and that the initial value is the null rect.

<span class="quote">&gt; Source/WebKit2/UIProcess/API/Cocoa/WKWebView.h:232
&gt; +- (void)takeSnapshotWithConfiguration:(nullable WKSnapshotConfiguration *)snapshotConfiguration completionHandler:(void(^)(UIImage * _Nullable snapshotImage, NSError * _Nullable error))completionHandler WK_API_AVAILABLE(macosx(WK_MAC_TBA), ios(WK_IOS_TBA));</span >

Omit the macosx entry here.

<span class="quote">&gt; Source/WebKit2/UIProcess/API/Cocoa/WKWebView.h:234
&gt; +- (void)takeSnapshotWithConfiguration:(nullable WKSnapshotConfiguration *)snapshotConfiguration completionHandler:(void(^)(NSImage * _Nullable snapshotImage, NSError * _Nullable error))completionHandler WK_API_AVAILABLE(macosx(WK_MAC_TBA), ios(WK_IOS_TBA));</span >

Omit the ios entry here!</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>