[Webkit-unassigned] [Bug 221662] New: WKWebView's -takeSnapshotWithConfiguration:completionHandler: can't capture GPU rendering features

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Feb 9 23:29:12 PST 2021


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

            Bug ID: 221662
           Summary: WKWebView's
                    -takeSnapshotWithConfiguration:completionHandler:
                    can't capture GPU rendering features
           Product: WebKit
           Version: Safari 14
          Hardware: Mac (Apple Silicon)
                OS: macOS 11
            Status: NEW
          Severity: Critical
          Priority: P2
         Component: WebKit API
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: jonathan at tumult.com

Snapshots can't capture 3D perspective, filter effects, reflection, etc.

Using the -[NSView cacheDisplayInRect:toBitmapImageRep:] doesn't get the view at all; the only workaround seems to be to make another WKWebView with a copy of the content/DOM in a mostly offscreen window (1px must show) and use CGWindowListCreateImage().  This isn't desirable for several reasons such as performance and issues in recreating the view accurately.

Apps like Tumult Hype [https://tumult.com/hype/] need to take web view snapshots for many reasons like thumbnails, poster images, video export, etc. Being unable to capture the web view in use is a significant hurdle.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210210/d4419c4a/attachment-0001.htm>


More information about the webkit-unassigned mailing list