[Webkit-unassigned] [Bug 161450] No reliable way to get a snapshot of WKWebView (macOS)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Nov 1 00:42:54 PDT 2016


--- Comment #31 from Dan Saunders <dasau at microsoft.com> ---
(In reply to comment #30)
> (In reply to comment #29)
> > 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.

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 https://bugs.webkit.org/show_bug.cgi?id=146476. 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.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20161101/3fdc14a5/attachment-0001.html>

More information about the webkit-unassigned mailing list