RESOLVED FIXED 151132
[GTK] Runtime critical warnings when closing a page containing windowed plugins
https://bugs.webkit.org/show_bug.cgi?id=151132
Summary [GTK] Runtime critical warnings when closing a page containing windowed plugins
Carlos Garcia Campos
Reported 2015-11-11 03:12:38 PST
(WebKitPluginProcess:31915): Gtk-CRITICAL **: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed This is because our plugin widget that is a GtkPlug (derived from GtkWindow) can receive the delete-event signal before NetscapePlugin::platformDestroy is called. The delete-event signal, by default, destroys the window when the signal is not handled. So after the delete-event the GtkPlug is destroyed, but our pointer hasn't been reset. We can handle the delete-event using gtk_widget_hide_on_delete as callback, so that the plugin widget is hidden instead of destroyed.
Attachments
Patch (2.35 KB, patch)
2015-11-11 03:16 PST, Carlos Garcia Campos
mrobinson: review+
Carlos Garcia Campos
Comment 1 2015-11-11 03:16:20 PST
Carlos Garcia Campos
Comment 2 2015-11-11 08:36:34 PST
Note You need to log in before you can comment on or make changes to this bug.