GNOME Bugzilla – Bug 338682
Crash when moving zoom widget on toolbar
Last modified: 2007-09-08 20:43:14 UTC
1) Open the toolbar editor 2) Remove the zoom widget from the toolbar (if it is there) 3) Put the zoom widget back onto the toolbar 4) Move it on the toolbar 5) Move it again on the toolbar At this point epiphany will crash:
+ Trace 67642
Created attachment 66432 [details] [review] Don't crash when adding back zoom widget to toolbar I confirm this bug report on 2.14 and ~HEAD; I attach a patch that fix the issue. Unfortunately I don't think this is the right fix and something must be wrong in ephy-zoom-action.c or ephy-zoom-control.c but I failed to spot the problem in there.
Thanks for the patch! EggEditableToolbar *etoolbar = EGG_EDITABLE_TOOLBAR (gtk_widget_get_ancestor (GTK_WIDGET (item), EGG_TYPE_EDITABLE_TOOLBAR)); + if (GTK_WIDGET(item)->parent == NULL) + return; if (etoolbar->priv->edit_mode > 0) The crash is in the etoolbar-> dereference. So checking if (etoolbar == NULL) return; should be equivalent, right? If that also works, I'd prefer that. With that changed, and please also add a comment pointing to this bug, oktc for gnome-2-14 and HEAD. Let's keep the bug open though.
testing on etoolbar works; commited.
Any reason to keep this bug open? Looks like RESOLVED to me.