[Webkit-unassigned] [Bug 164180] New: [GTK] No way to safely use webkit_web_view_get_snapshot() as pages are not rendered when LOAD_FINISHED is called

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Oct 29 08:36:27 PDT 2016


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

            Bug ID: 164180
           Summary: [GTK] No way to safely use
                    webkit_web_view_get_snapshot() as pages are not
                    rendered when LOAD_FINISHED is called
    Classification: Unclassified
           Product: WebKit
           Version: Other
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit Gtk
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mcatanzaro at igalia.com
                CC: bugs-noreply at webkitgtk.org

Currently there is no guarantee that pages are actually rendered at the time that LOAD_FINISHED is emitted, and there is no signal to indicate that a page has been rendered, so there is never any safe time to use webkit_web_view_get_snapshot(). In Epiphany we use a hardcoded timeout (0.2 or 0.5 seconds or so) to decide when to call the snapshot API as a workaround for this. Otherwise there is a chance that the returned snapshot would just be a white background.

Preferably LOAD_FINISHED would not be emitted until the page has actually been rendered. Alternatively, we could add a new signal to indicate when it is safe to take a snapshot.

-- 
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/1136818d/attachment-0001.html>


More information about the webkit-unassigned mailing list