Bug 23279

Summary: [GTK] fix crash after WebView dispose
Product: WebKit Reporter: Alexander Butenko <a.butenka>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   
Attachments:
Description Flags
patch zecke: review+

Description Alexander Butenko 2009-01-12 15:53:30 PST
Bug is related to #23194. 

The WebCore::Page is deleted by the dispose implementation and webkit_web_view_set_scroll_adjustments() doesn't check is Page still exist.
Mischeck leads to a crash sometimes.
Comment 1 Alexander Butenko 2009-01-12 15:58:24 PST
Created attachment 26653 [details]
patch
Comment 2 Holger Freyther 2009-01-13 03:35:45 PST
Looks good. I have this as well:

@@ -883,6 +887,9 @@ static gboolean webkit_navigation_request_handled(GSignalInvocationHint* ihint,
 static AtkObject* webkit_web_view_get_accessible(GtkWidget* widget)
 {
     WebKitWebView* webView = WEBKIT_WEB_VIEW(widget);
+    if (!core(webView))
+        return NULL;
+
Comment 3 Holger Freyther 2009-01-13 06:29:11 PST
Comment on attachment 26653 [details]
patch

I will land this with the atk hunk from the comments. there was mutual agreement on #webkit-gtk on this issue.
Comment 4 Holger Freyther 2009-01-13 11:57:47 PST
Landed in r39855.