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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Oct 29 08:26:52 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=161450

Michael Catanzaro <mcatanzaro at igalia.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mcatanzaro at igalia.com

--- Comment #29 from Michael Catanzaro <mcatanzaro at igalia.com> ---
I just want to add a quick warning. We have a similar API in WebKitGTK+, but it is not reliable because there is no way to know when the page has actually been rendered, so no way to know when it's safe to call the API. 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. The only way to use the API is to take the snapshot later using some arbitrary timeout, which works in practice but is really terrible. You'll want to be careful to ensure this isn't a problem for the WKWebView API.

-- 
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/20161029/7e75bf40/attachment.html>


More information about the webkit-unassigned mailing list