]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
webkit2gtk: URI*.get_http_headers returns unowned Soup.MessageHeaders
authorRico Tzschichholz <ricotz@ubuntu.com>
Mon, 19 Sep 2016 16:31:05 +0000 (18:31 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Tue, 20 Sep 2016 10:11:09 +0000 (12:11 +0200)
Those are actually annotated "transfer none" in the webkit's source.

https://bugzilla.gnome.org/show_bug.cgi?id=741175

vapi/metadata/WebKit2WebExtension-4.0.metadata
vapi/webkit2gtk-web-extension-4.0.vapi

index 65bfbfe4b466f3ee549013b35a9bd8c8a3a7ddf9..3fe3c186f0f6110c08c01d232204010a0253c5c4 100644 (file)
@@ -8,4 +8,6 @@ Frame.get_javascript_* type="void*"
 
 DOMEventTarget.add_event_listener_with_closure.handler type="owned WebKit.DOM.EventTargetFunc"
 
+URIRequest.get_http_headers unowned
+URIResponse.get_http_headers unowned
 
index 09d3115707b4beefcfb18db959afe695cc138ad3..0190e86750c9bf4fc0d7e1a1857d647b801e12c1 100644 (file)
@@ -2869,7 +2869,7 @@ namespace WebKit {
        public class URIRequest : GLib.Object {
                [CCode (has_construct_function = false)]
                public URIRequest (string uri);
-               public Soup.MessageHeaders get_http_headers ();
+               public unowned Soup.MessageHeaders get_http_headers ();
                public unowned string get_http_method ();
                public unowned string get_uri ();
                public void set_uri (string uri);
@@ -2880,13 +2880,13 @@ namespace WebKit {
                [CCode (has_construct_function = false)]
                protected URIResponse ();
                public uint64 get_content_length ();
-               public Soup.MessageHeaders get_http_headers ();
+               public unowned Soup.MessageHeaders get_http_headers ();
                public unowned string get_mime_type ();
                public uint get_status_code ();
                public unowned string get_suggested_filename ();
                public unowned string get_uri ();
                public uint64 content_length { get; }
-               public Soup.MessageHeaders http_headers { owned get; }
+               public Soup.MessageHeaders http_headers { get; }
                public string mime_type { get; }
                public uint status_code { get; }
                public string suggested_filename { get; }