public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Priit Laes" <plaes@plaes.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gnome:master commit in: net-libs/webkit-gtk/files/, net-libs/webkit-gtk/
Date: Sat,  7 May 2011 19:18:02 +0000 (UTC)	[thread overview]
Message-ID: <86a19fae13dbbc5fb8f3e5366ba5aef7b22d14e0.plaes@gentoo> (raw)

commit:     86a19fae13dbbc5fb8f3e5366ba5aef7b22d14e0
Author:     Priit Laes <plaes <AT> plaes <DOT> org>
AuthorDate: Sat May  7 19:08:39 2011 +0000
Commit:     Priit Laes <plaes <AT> plaes <DOT> org>
CommitDate: Sat May  7 19:08:39 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=86a19fae

net-libs/webkit-gtk: Fix for frequent crasher and small cleanups

---
 .../files/webkit-gtk-1.4.0-nav-crasher.patch       |   73 ++++++++++++++++++++
 ...gtk-1.4.0.ebuild => webkit-gtk-1.4.0-r1.ebuild} |    4 +-
 ....0-r200.ebuild => webkit-gtk-1.4.0-r201.ebuild} |    3 +-
 3 files changed, 76 insertions(+), 4 deletions(-)

diff --git a/net-libs/webkit-gtk/files/webkit-gtk-1.4.0-nav-crasher.patch b/net-libs/webkit-gtk/files/webkit-gtk-1.4.0-nav-crasher.patch
new file mode 100644
index 0000000..e447708
--- /dev/null
+++ b/net-libs/webkit-gtk/files/webkit-gtk-1.4.0-nav-crasher.patch
@@ -0,0 +1,73 @@
+commit e037ca43e772ac0e5b0d80f95a2a6c996c0c11fb
+Author: xan@webkit.org <xan@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
+Date:   Sat Apr 30 05:20:07 2011 +0000
+
+    2011-04-29  Xan Lopez  <xlopez@igalia.com>
+    
+            Reviewed by Martin Robinson.
+    
+            [Gtk+] Crash when navigating back
+            https://bugs.webkit.org/show_bug.cgi?id=59799
+    
+            The innerNode management in WebKitHitTestResult was relying on the
+            old DOM bindings behavior where every DOM objects had to be
+            disposed by the caller. Now the objects are garbage collected by
+            WebKit when either the parent frame or document dies, so this is
+            not needed anymore. Update the code to simply take ownership of
+            the node, which effectively correctly balances the reference
+            count.
+    
+            * webkit/webkithittestresult.cpp:
+            (webkit_hit_test_result_dispose): call C++ dtors in private data.
+            (webkit_hit_test_result_get_property): adatp to GRefPtr API.
+            (webkit_hit_test_result_init): call C++ ctors in private data.
+    
+    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@85390 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+diff --git a/Source/WebKit/gtk/webkit/webkithittestresult.cpp b/Source/WebKit/gtk/webkit/webkithittestresult.cpp
+index 9632493..1abb166 100644
+--- a/Source/WebKit/gtk/webkit/webkithittestresult.cpp
++++ b/Source/WebKit/gtk/webkit/webkithittestresult.cpp
+@@ -22,6 +22,7 @@
+ #include "webkithittestresult.h"
+ 
+ #include "GOwnPtr.h"
++#include "GRefPtr.h"
+ #include "HitTestResult.h"
+ #include "KURL.h"
+ #include "WebKitDOMBinding.h"
+@@ -47,7 +48,7 @@ struct _WebKitHitTestResultPrivate {
+     char* linkURI;
+     char* imageURI;
+     char* mediaURI;
+-    WebKitDOMNode* innerNode;
++    GRefPtr<WebKitDOMNode> innerNode;
+ };
+ 
+ enum {
+@@ -74,7 +75,7 @@ static void webkit_hit_test_result_finalize(GObject* object)
+ 
+ static void webkit_hit_test_result_dispose(GObject* object)
+ {
+-    g_object_unref(WEBKIT_HIT_TEST_RESULT(object)->priv->innerNode);
++    WEBKIT_HIT_TEST_RESULT(object)->priv->~WebKitHitTestResultPrivate();
+ 
+     G_OBJECT_CLASS(webkit_hit_test_result_parent_class)->dispose(object);
+ }
+@@ -98,7 +99,7 @@ static void webkit_hit_test_result_get_property(GObject* object, guint propertyI
+         g_value_set_string(value, priv->mediaURI);
+         break;
+     case PROP_INNER_NODE:
+-        g_value_set_object(value, priv->innerNode);
++        g_value_set_object(value, priv->innerNode.get());
+         break;
+     default:
+         G_OBJECT_WARN_INVALID_PROPERTY_ID(object, propertyID, pspec);
+@@ -230,6 +231,7 @@ static void webkit_hit_test_result_class_init(WebKitHitTestResultClass* webHitTe
+ static void webkit_hit_test_result_init(WebKitHitTestResult* web_hit_test_result)
+ {
+     web_hit_test_result->priv = G_TYPE_INSTANCE_GET_PRIVATE(web_hit_test_result, WEBKIT_TYPE_HIT_TEST_RESULT, WebKitHitTestResultPrivate);
++    new (web_hit_test_result->priv) WebKitHitTestResultPrivate();
+ }
+ 
+ namespace WebKit {

diff --git a/net-libs/webkit-gtk/webkit-gtk-1.4.0.ebuild b/net-libs/webkit-gtk/webkit-gtk-1.4.0-r1.ebuild
similarity index 97%
rename from net-libs/webkit-gtk/webkit-gtk-1.4.0.ebuild
rename to net-libs/webkit-gtk/webkit-gtk-1.4.0-r1.ebuild
index e37d989..8c8b69b 100644
--- a/net-libs/webkit-gtk/webkit-gtk-1.4.0.ebuild
+++ b/net-libs/webkit-gtk/webkit-gtk-1.4.0-r1.ebuild
@@ -67,6 +67,8 @@ src_prepare() {
 	# XXX: Fails to apply
 	#epatch "${FILESDIR}"/${PN}-1.2.5-darwin8.patch
 
+	epatch "${FILESDIR}/${P}-nav-crasher.patch"
+
 	# Don't force -O2
 	sed -i 's/-O2//g' "${S}"/configure.ac || die "sed failed"
 
@@ -112,8 +114,6 @@ src_configure() {
 }
 
 src_compile() {
-	# XXX: This step is required so we properly build gettext catalogs
-	emake update-po || die "Compile failed"
 	# Fix sandbox error with USE="introspection"
 	# https://bugs.webkit.org/show_bug.cgi?id=35471
 	emake XDG_DATA_HOME="${T}/.local" || die "Compile failed"

diff --git a/net-libs/webkit-gtk/webkit-gtk-1.4.0-r200.ebuild b/net-libs/webkit-gtk/webkit-gtk-1.4.0-r201.ebuild
similarity index 96%
rename from net-libs/webkit-gtk/webkit-gtk-1.4.0-r200.ebuild
rename to net-libs/webkit-gtk/webkit-gtk-1.4.0-r201.ebuild
index 7cb607a..4f379e0 100644
--- a/net-libs/webkit-gtk/webkit-gtk-1.4.0-r200.ebuild
+++ b/net-libs/webkit-gtk/webkit-gtk-1.4.0-r201.ebuild
@@ -65,6 +65,7 @@ src_prepare() {
 	# Fix build on Darwin8 (10.4 Tiger)
 	# XXX: Fails to apply
 	#epatch "${FILESDIR}"/${PN}-1.2.5-darwin8.patch
+	epatch "${FILESDIR}/${P}-nav-crasher.patch"
 
 	# Don't force -O2
 	sed -i 's/-O2//g' "${S}"/configure.ac || die "sed failed"
@@ -110,8 +111,6 @@ src_configure() {
 }
 
 src_compile() {
-	# XXX: This step is required so we properly build gettext catalogs
-	emake update-po || die "Compile failed"
 	# Fix sandbox error with USE="introspection"
 	# https://bugs.webkit.org/show_bug.cgi?id=35471
 	emake XDG_DATA_HOME="${T}/.local" || die "Compile failed"



             reply	other threads:[~2011-05-07 19:18 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-07 19:18 Priit Laes [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-04-21 14:40 [gentoo-commits] proj/gnome:master commit in: net-libs/webkit-gtk/files/, net-libs/webkit-gtk/ Gilles Dartiguelongue
2013-11-27 23:32 Gilles Dartiguelongue
2013-03-03  0:57 Priit Laes
2013-02-13 14:05 Priit Laes
2013-01-15  9:39 Priit Laes
2012-11-04  6:25 Alexandre Rostovtsev
2012-10-27  8:43 Priit Laes
2012-10-10 17:34 Priit Laes
2012-09-13  5:35 Alexandre Rostovtsev
2012-07-12 12:33 Priit Laes
2012-04-14  6:10 Alexandre Restovtsev
2012-04-06  2:36 Alexandre Restovtsev
2012-03-04 21:11 Alexandre Restovtsev
2012-02-26 19:20 Alexandre Restovtsev
2012-01-17  9:08 Priit Laes
2011-12-20 17:37 Priit Laes
2011-11-28  5:35 Priit Laes
2011-11-26  8:43 Priit Laes
2011-10-30  0:13 Alexandre Restovtsev
2011-06-11  1:44 Nirbheek Chauhan
2011-06-05 20:12 Priit Laes
2011-03-22 13:22 Priit Laes
2011-03-04 10:23 Nirbheek Chauhan
2011-02-25 11:54 Priit Laes

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86a19fae13dbbc5fb8f3e5366ba5aef7b22d14e0.plaes@gentoo \
    --to=plaes@plaes.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox