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

Carlos Garcia Campos cgarcia at igalia.com
Tue Mar 19 00:47:03 PDT 2019

El lun, 18-03-2019 a las 16:44 +0100, Cédric Bellegarde escribió:
> 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

We need to fix this crash, please file a bug.
gdk_window_create_gl_context() requires the web view to be realized.

> 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.

I'm not sure if that will work in Wayland, even if we fix the previous

> 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?

Have you tried webkit_web_view_get_snpashot()?

> regards,
> --
> Cédric Bellegarde
> _______________________________________________
> webkit-gtk mailing list
> webkit-gtk at lists.webkit.org
> https://lists.webkit.org/mailman/listinfo/webkit-gtk
Carlos Garcia Campos
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <http://lists.webkit.org/pipermail/webkit-gtk/attachments/20190319/4ba639fc/attachment.bin>

More information about the webkit-gtk mailing list