[Webkit-unassigned] [Bug 161450] New: No reliable way to get a snapshot of WKWebView (macOS)
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Aug 31 12:20:55 PDT 2016
https://bugs.webkit.org/show_bug.cgi?id=161450
Bug ID: 161450
Summary: No reliable way to get a snapshot of WKWebView (macOS)
Classification: Unclassified
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebKit API
Assignee: webkit-unassigned at lists.webkit.org
Reporter: dasau at microsoft.com
The cocoa API -[NSView cacheDisplayInRect:(NSRect)rect toBitmapImageRep:(NSBitmapImageRep *)bitmapImageRep] does not work for WKWebView, it only returns an empty image. We need a way to get the visible contents of the web page on macOS. The UI is rendered in a separate process, there should be an API to grab the visible bitmap from the UI process and expose it as a method on WKWebView that the embedding application can consume. We need to be able to grab the web page contents regardless if the WKWebView is hidden or overlapped by other views, CGWindowListCreateImage will not work for that scenario.
For iOS, you can use the -[UIView drawViewHierarchyInRect:(CGRect)rect afterScreenUpdates:(BOOL)afterUpdates] API to get the web page contents.
--
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/20160831/e26bcc37/attachment.html>
More information about the webkit-unassigned
mailing list