[Webkit-unassigned] [Bug 81977] New: WebKitWebView signals with GError parameters cause crashes when using GObject Introspection

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 22 15:24:59 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=81977

           Summary: WebKitWebView signals with GError parameters cause
                    crashes when using GObject Introspection
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: UNCONFIRMED
          Severity: Major
          Priority: P2
         Component: WebKit Gtk
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: grim at reaperworld.com


If you connect to the WebKetWebView::load-error or WebKitWebView::resource-load-error signals when using WebKit-3.0.typelib your program will crash upon signal emission for those 2 signals with the following error:

CRITICAL **: Converting of type 'void' is not implemented

This is because the closures for both signals call out the GError parameter as a pointer when it should be specified as a GBoxed type.  For reference, GError was made a boxed type in Gtk 2.26.

There should be no issues with existing C/C++ code since the pointer that is passed from the signal is type casted back into a GError in the callback function.

I will be uploading a patch shortly which resolves the issue by adding 2 closures and changing the type's passed to g_signal_new.

I have verified the changes manually but I can provide example code if needed.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list