[Webkit-unassigned] [Bug 31271] New: crashed when destroying
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Nov 9 13:04:04 PST 2009
https://bugs.webkit.org/show_bug.cgi?id=31271
Summary: crashed when destroying
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: Linux
Status: UNCONFIRMED
Severity: Major
Priority: P2
Component: WebKit Gtk
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: wendell at bani.com.br
CC: gns at gnome.org
I'm getting a segfault when destroying the WebView widget in a idle callback.
Piece of code:
...
g_signal_connect (self,
"navigation-policy-decision-requested",
G_CALLBACK (link_cb),
NULL);
...
static gboolean
link_cb (WebKitWebView *web_view,
WebKitWebFrame *frame,
WebKitNetworkRequest *request,
WebKitWebNavigationAction *navigation_action,
WebKitWebPolicyDecision *policy_decision,
gpointer user_data)
{
const gchar *uri;
uri = webkit_network_request_get_uri (request);
if (strncmp (uri, "ascli://remove", 14) == 0)
{
webkit_web_policy_decision_ignore (policy_decision);
g_idle_add ((GSourceFunc) delayed_destroy, web_view);
return TRUE;
}
return FALSE;
}
...
static gboolean
delayed_destroy (GtkWidget *w)
{
gtk_widget_destroy (w); <<<<----------- CRASH
return FALSE;
}
......
I'm putting the WebView inside a GtkVBox
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list