Bug 167760
Summary: | [GTK] WebView::get_snapshot() fails on Wayland | ||
---|---|---|---|
Product: | WebKit | Reporter: | Cédric Bellegarde <cedric.bellegarde> |
Component: | WebKitGTK | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | bugs-noreply, magomez, mcatanzaro |
Priority: | P2 | ||
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Cédric Bellegarde
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Michael Catanzaro
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
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
Using get_snapshot delayed (10 seconds) doesn't fix the issue. So not an issue with page not rendered.
Cédric Bellegarde
And my webkit version is:
$ pacman -Q|grep webkit2
webkit2gtk 2.14.3-1
Cédric Bellegarde
Closing, don't find what is wrong in my code but trying with a simple webview, it works.