RESOLVED FIXED 167760
[GTK] WebView::get_snapshot() fails on Wayland
https://bugs.webkit.org/show_bug.cgi?id=167760
Summary [GTK] WebView::get_snapshot() fails on Wayland
Cédric Bellegarde
Reported 2017-02-02 14:44:17 PST
When trying to get a snapshot from wayland, I only get a white cairo.surface. When trying to get a snapshot from Xorg, it works. On Wayland, adding WEBKIT_DISABLE_COMPOSITING_MODE" == "1" fix the issue.
Attachments
Michael Catanzaro
Comment 1 2017-02-02 17:21:00 PST
FWIW I'm 100% sure it works fine in Epiphany, as we use this API to take overview snapshots and I would certainly have noticed if that was broken. What version of WebKitGTK+ are you using?
Michael Catanzaro
Comment 2 2017-02-02 17:22:43 PST
Ah wait, this API is racy and impossible to use correctly. Could you be hitting bug #164180? That issue is timing-dependent and so it would not be surprising if you get different results in Wayland.
Cédric Bellegarde
Comment 3 2017-02-03 02:21:11 PST
Using get_snapshot delayed (10 seconds) doesn't fix the issue. So not an issue with page not rendered.
Cédric Bellegarde
Comment 4 2017-02-03 02:27:50 PST
And my webkit version is: $ pacman -Q|grep webkit2 webkit2gtk 2.14.3-1
Cédric Bellegarde
Comment 5 2017-02-03 03:17:51 PST
Closing, don't find what is wrong in my code but trying with a simple webview, it works.
Note You need to log in before you can comment on or make changes to this bug.