Update to webkit-2.0.2.

ok landry@ (maintainer)
This commit is contained in:
ajacoutot 2013-05-14 12:04:59 +00:00
parent 1bdc23f2db
commit 6fb221d40b
4 changed files with 4 additions and 71 deletions

View File

@ -1,13 +1,12 @@
# $OpenBSD: Makefile,v 1.84 2013/05/07 14:16:52 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.85 2013/05/14 12:04:59 ajacoutot Exp $
ONLY_FOR_ARCHS= ${GCC4_ARCHS}
COMMENT = open source web browser engine for Gtk+
V = 2.0.1
V = 2.0.2
DISTNAME = webkitgtk-${V}
PKGNAME = webkit-${V}
REVISION = 1
EPOCH = 0
CATEGORIES = www
DPB_PROPERTIES =parallel

View File

@ -1,2 +1,2 @@
SHA256 (webkitgtk-2.0.1.tar.xz) = YwNVKjnXkScl11vFX1MM25kXH7hz4pl5jQu5Mtbqdss=
SIZE (webkitgtk-2.0.1.tar.xz) = 9841872
SHA256 (webkitgtk-2.0.2.tar.xz) = w2hQMlRetMI/P1aCaBd4OmljrVm9e7+AZwUFmz2MrrI=
SIZE (webkitgtk-2.0.2.tar.xz) = 9845276

View File

@ -1,43 +0,0 @@
$OpenBSD: patch-Source_WebKit_gtk_webkit_webkitwebplugin_cpp,v 1.1 2013/05/07 14:16:52 ajacoutot Exp $
http://trac.webkit.org/changeset/149666
--- Source/WebKit/gtk/webkit/webkitwebplugin.cpp.orig Tue Oct 16 08:53:09 2012
+++ Source/WebKit/gtk/webkit/webkitwebplugin.cpp Tue May 7 09:49:23 2013
@@ -63,8 +63,6 @@ static void webkit_web_plugin_finalize(GObject* object
WebKitWebPlugin* plugin = WEBKIT_WEB_PLUGIN(object);
WebKitWebPluginPrivate* priv = plugin->priv;
- g_free(priv->path);
-
g_slist_foreach(priv->mimeTypes, (GFunc)freeMIMEType, 0);
g_slist_free(priv->mimeTypes);
@@ -191,22 +189,19 @@ const char* webkit_web_plugin_get_path(WebKitWebPlugin
WebKitWebPluginPrivate* priv = plugin->priv;
if (priv->path)
- return priv->path;
+ return priv->path.get();
- GError* error = 0;
- priv->path = g_filename_from_utf8(priv->corePlugin->path().utf8().data(), -1, 0, 0, &error);
+ GOwnPtr<GError> error;
+ priv->path.set(g_filename_from_utf8(priv->corePlugin->path().utf8().data(), -1, 0, 0, &error.outPtr()));
if (!error)
- return priv->path;
+ return priv->path.get();
// In the unlikely case the convertion fails, report the error and make sure we free
// any partial convertion that ended up in the variable.
- g_free(priv->path);
- priv->path = 0;
+ priv->path.clear();
g_warning("Failed to convert '%s' to system filename encoding: %s", priv->corePlugin->path().utf8().data(), error->message);
-
- g_clear_error(&error);
return 0;
}

View File

@ -1,23 +0,0 @@
$OpenBSD: patch-Source_WebKit_gtk_webkit_webkitwebpluginprivate_h,v 1.1 2013/05/07 14:16:52 ajacoutot Exp $
http://trac.webkit.org/changeset/149666
--- Source/WebKit/gtk/webkit/webkitwebpluginprivate.h.orig Thu Oct 27 22:51:16 2011
+++ Source/WebKit/gtk/webkit/webkitwebpluginprivate.h Tue May 7 09:49:21 2013
@@ -21,6 +21,7 @@
#include "webkitwebplugin.h"
#include <glib-object.h>
+#include <wtf/gobject/GOwnPtr.h>
#include <wtf/text/CString.h>
namespace WebCore {
@@ -38,7 +39,7 @@ struct _WebKitWebPluginPrivate {
RefPtr<WebCore::PluginPackage> corePlugin;
CString name;
CString description;
- char* path;
+ GOwnPtr<char> path;
GSList* mimeTypes;
};