<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - No reliable way to get a snapshot of WKWebView (macOS)"
href="https://bugs.webkit.org/show_bug.cgi?id=161450#c31">Comment # 31</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - No reliable way to get a snapshot of WKWebView (macOS)"
href="https://bugs.webkit.org/show_bug.cgi?id=161450">bug 161450</a>
from <span class="vcard"><a class="email" href="mailto:dasau@microsoft.com" title="Dan Saunders <dasau@microsoft.com>"> <span class="fn">Dan Saunders</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=161450#c30">comment #30</a>)
<span class="quote">> (In reply to <a href="show_bug.cgi?id=161450#c29">comment #29</a>)
> > If you try to take a snapshot when LOAD_FINISHED is received, you could wind up
> > with a blank snapshot since the page is not guaranteed to actually be
> > rendered when LOAD_FINISHED is called.
>
> And of course it's a race condition, so you could be affected by this bug
> even if you're not able to reproduce it on your hardware. Hopefully the Mac
> ports have a more reliable rendering architecture.</span >
Thanks for the warning. I have not noticed this being an issue on Mac during my testing, I am always getting a non-blank snapshot on from my machines. I can do some stress testing to confirm. Since Mac is using a software snapshot, it should not be as impacted by hardware race conditions. I see there was an issues a few years ago on the iOS API I am calling but it was fixed with <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - WKWebView snapshots have the wrong scale after rotation"
href="show_bug.cgi?id=146476">https://bugs.webkit.org/show_bug.cgi?id=146476</a>. Tim mentions some other edge cases in that bug, but I do not have the specific cases. The iOS API has been available for a few years, so I am assuming it works reliably.</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>