[Webkit-unassigned] [Bug 150303] Accessing default web context before gtk_init results in drawing failure (Gtk-WARNING **: drawing failure for widget 'WebKitWebView': invalid value for an input Visual*)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Sep 24 15:01:52 PDT 2018


Adrian Perez <aperez at igalia.com> changed:

           What    |Removed                     |Added
                 CC|                            |aperez at igalia.com

--- Comment #2 from Adrian Perez <aperez at igalia.com> ---
Interestingly enough, the same kind of warnings are logged when building
Cog (https://github.com/Igalia/cog) with “-DCOG_USE_WEBKITGTK=ON”, and
after I have updated to WebKitGTK+ 2.22.x

While it might be possible to workaround this issue in many cases, it
is very annoying for programs which, for example, fetch the default
context, then its associated WebKitSettings, and change the initial
settings based on CLI flags *before* GTK+ has been initialized (in
Cog GTK+ is initialized by GtkApplication, and the default context
has been retrieved at least once precisely to setup CLI parsing).

A workaround has been to call gtk_init() early anyway, but it feels
dirty to do that: https://github.com/Igalia/cog/pull/63

IMHO it would be great if we could fix this regression, as we don't
know how many applications out there in the wild depend on this
behaviour, and it would be better to not break them if possible.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180924/87aec384/attachment.html>

More information about the webkit-unassigned mailing list