1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-06-18 03:00:42 -04:00
ports/www/webkit-gtk3/files/patch-Source_WebKit_gtk_webkit_webkitwebview.cpp
Koop Mast 1ed005506f Update the webkit-gtk2 port to 1.8.3. This should fix the
soup_session_send_request_async() error when running webkit based programs like
midori. Also add a webkit-gtk3 port.

Obtained from:	gnome team repo
2013-03-13 07:59:13 +00:00

22 lines
753 B
C++

https://bugs.webkit.org/show_bug.cgi?id=50173
--- Source/WebKit/gtk/webkit/webkitwebview.cpp.orig 2011-06-14 02:10:55.000000000 +0200
+++ Source/WebKit/gtk/webkit/webkitwebview.cpp 2011-08-27 10:48:52.000000000 +0200
@@ -4939,6 +4939,8 @@
priv->mainResource = adoptGRef(webResource);
priv->mainResourceIdentifier = identifier;
+
+ g_object_ref(webView);
}
void webkit_web_view_add_resource(WebKitWebView* webView, const char* identifier, WebKitWebResource* webResource)
@@ -4955,6 +4957,8 @@
priv->mainResource = 0;
} else
g_hash_table_remove(priv->subResources.get(), identifier);
+
+ g_object_unref(webView);
}
WebKitWebResource* webkit_web_view_get_resource(WebKitWebView* webView, char* identifier)