[webkit-gtk] How to get a snapshot of an unmaped WebView ?

Cédric Bellegarde cedric.bellegarde at adishatz.org
Mon Mar 18 08:44:42 PDT 2019


Hello,

I just migrate from Xorg to Wayland and looks like Eolie is segfaulting 
on Wayland:
<https://bugs.webkit.org/show_bug.cgi?id=195880>

It works on Xorg but on Wayland, I get:
(org.gnome.Eolie:1875): Gdk-CRITICAL **: 16:28:07.862: 
gdk_window_create_gl_context: assertion 'GDK_IS_WINDOW (window)' failed
./run.sh : ligne 1 :  1875 Erreur de segmentation  (core dumped)eolie

Previous code was a big big hack:
taking webview, put it in a Gtk.OffScreenWindow to map() and then 
moving it again to my stack. Was ugly but working.

So, I just replaced this code by another non segfaulting stupid 
alternative:
<https://gitlab.gnome.org/World/eolie/commit/d85ddb44c685dfa6e039edf4216d86a7f557b349>

My question is: What is the correct way to get a snapshot of an 
unmapped webview?

regards,
--
Cédric Bellegarde

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-gtk/attachments/20190318/93bb3c68/attachment.html>


More information about the webkit-gtk mailing list