[Webkit-unassigned] [Bug 116672] [WPE][GTK] WebKit2.WebContext register_uri_scheme does segfault

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Nov 13 10:33:19 PST 2018


Michael Catanzaro <mcatanzaro at igalia.com> changed:

           What    |Removed                     |Added
                 CC|                            |bugs-noreply at webkitgtk.org
          Component|WebKit2                     |WebKit Gtk
            Summary|WebKit2.WebContext          |[WPE][GTK]
                   |register_uri_scheme does    |WebKit2.WebContext
                   |segfault                    |register_uri_scheme does
                   |                            |segfault

--- Comment #4 from Michael Catanzaro <mcatanzaro at igalia.com> ---
BTW in this case the exit handler is coming from right here:

static gpointer createDefaultWebContext(gpointer)
    static GRefPtr<WebKitWebContext> webContext = adoptGRef(WEBKIT_WEB_CONTEXT(g_object_new(WEBKIT_TYPE_WEB_CONTEXT, nullptr)));
    return webContext.get();

To avoid, the GRefPtr would need to be removed. Then the default WebKitWebContext would be leaked. But, as explained above, we don't want to do that. Ideally we would try to find some way to ensure that pygobject and gjs shut down last of all. Normally the way to do that is to register your own exit handler first. pygobject and gjs should be able to win and run first, because they execute code before WebKit ever does.

P.S. I know the Bugzilla components are confusing, but we'll only see the bugs if you select the "WebKit Gtk" component. Sorry for taking three years to respond, but I just stumbled onto this by chance....

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/20181113/fb6a538e/attachment.html>

More information about the webkit-unassigned mailing list