Merge lp:~dobey/ubuntu/oneiric/webkit/scroll-crasher-fix into lp:ubuntu/oneiric/webkit

Proposed by dobey
Status: Merged
Merged at revision: 42
Proposed branch: lp:~dobey/ubuntu/oneiric/webkit/scroll-crasher-fix
Merge into: lp:ubuntu/oneiric/webkit
Diff against target: 67 lines (+49/-0)
3 files modified
debian/changelog (+7/-0)
debian/patches/10_cherrypick_r95940.patch (+41/-0)
debian/patches/series (+1/-0)
To merge this branch: bzr merge lp:~dobey/ubuntu/oneiric/webkit/scroll-crasher-fix
Reviewer Review Type Date Requested Status
Adam Conrad (community) Approve
Ubuntu branches Pending
Review via email: mp+77587@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Adam Conrad (adconrad) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2011-09-09 15:43:11 +0000
3+++ debian/changelog 2011-09-29 19:02:19 +0000
4@@ -1,3 +1,10 @@
5+webkit (1.4.3-0ubuntu3) oneiric; urgency=low
6+
7+ * debian/patches/10_cherrypick_r95940.patch:
8+ - Avoid crashing on scrollbar unparent/reparent (LP: #851044)
9+
10+ -- Rodney Dawes <rodney.dawes@ubuntu.com> Thu, 29 Sep 2011 14:54:29 -0400
11+
12 webkit (1.4.3-0ubuntu2) oneiric; urgency=low
13
14 * debian/rules: armel library has a ton of extra uninteresting
15
16=== added file 'debian/patches/10_cherrypick_r95940.patch'
17--- debian/patches/10_cherrypick_r95940.patch 1970-01-01 00:00:00 +0000
18+++ debian/patches/10_cherrypick_r95940.patch 2011-09-29 19:02:19 +0000
19@@ -0,0 +1,41 @@
20+Index: trunk/Source/WebKit/gtk/webkit/webkitwebview.cpp
21+===================================================================
22+--- trunk/Source/WebKit/gtk/webkit/webkitwebview.cpp (revision 95271)
23++++ trunk/Source/WebKit/gtk/webkit/webkitwebview.cpp (revision 95940)
24+@@ -428,5 +428,4 @@
25+ }
26+
27+-#ifndef GTK_API_VERSION_2
28+ static void setHorizontalAdjustment(WebKitWebView* webView, GtkAdjustment* adjustment)
29+ {
30+@@ -445,4 +444,5 @@
31+ }
32+
33++#ifndef GTK_API_VERSION_2
34+ static GtkAdjustment* getHorizontalAdjustment(WebKitWebView* webView)
35+ {
36+@@ -1040,12 +1040,6 @@
37+ static void webkit_web_view_set_scroll_adjustments(WebKitWebView* webView, GtkAdjustment* horizontalAdjustment, GtkAdjustment* verticalAdjustment)
38+ {
39+- // This may be called after the page has been destroyed, in which case we do nothing.
40+- Page* page = core(webView);
41+- if (!page)
42+- return;
43+-
44+- WebKit::ChromeClient* client = static_cast<WebKit::ChromeClient*>(page->chrome()->client());
45+- client->adjustmentWatcher()->setHorizontalAdjustment(horizontalAdjustment);
46+- client->adjustmentWatcher()->setVerticalAdjustment(verticalAdjustment);
47++ setHorizontalAdjustment(webView, horizontalAdjustment);
48++ setVerticalAdjustment(webView, verticalAdjustment);
49+ }
50+ #endif
51+@@ -1307,4 +1301,9 @@
52+
53+ priv->disposing = TRUE;
54++
55++ // Make sure GtkAdjustmentWatcher won't be reacting to adjustment changes after the
56++ // WebView is destroyed.
57++ setHorizontalAdjustment(webView, 0);
58++ setVerticalAdjustment(webView, 0);
59+
60+ // These smart pointers are cleared manually, because some cleanup operations are
61
62=== modified file 'debian/patches/series'
63--- debian/patches/series 2011-07-11 17:25:15 +0000
64+++ debian/patches/series 2011-09-29 19:02:19 +0000
65@@ -1,1 +1,2 @@
66 03_g_const_return.patch
67+10_cherrypick_r95940.patch

Subscribers

People subscribed via source and target branches

to all changes: