[Webkit-unassigned] [Bug 134476] New: Annotations for WebResource.get_data produce wrong signature in Vala binding

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jun 30 17:50:57 PDT 2014


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

           Summary: Annotations for WebResource.get_data produce wrong
                    signature in Vala binding
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit Gtk
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: nilclass at xmail.net


The get_data method of WebKit.WebResource is currently unusable from Vala code, because the method signature in the .vapi file is incorrect.

Currently the generated Vala signature is:

  public async uint8 get_data (GLib.Cancellable? cancellable, out size_t length) throws GLib.Error;

the expected signature is:

  [CCode (array_length_type = "size_t")]
  public async uint8[] get_data (GLib.Cancellable? cancellable) throws GLib.Error;

I have checked that applying this change to the webkit2gtk-3.0.vapi file manually & linking against webkit2gtk version 2.4.2 works, but I don't have the capacity right now to compile webkit to find out what changes to the annotations are required to reach this result.
If someone could point me to the right documentation, I'd be willing to submit a patch.

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