Index: chrome/browser/gtk/bookmark_bar_gtk.cc |
=================================================================== |
--- chrome/browser/gtk/bookmark_bar_gtk.cc (revision 21217) |
+++ chrome/browser/gtk/bookmark_bar_gtk.cc (working copy) |
@@ -558,6 +558,12 @@ |
return FALSE; |
} |
+ // Don't take any action if the user releases outside the button. |
+ if (event->x < 0 || event->y < 0 || event->x >= sender->allocation.width || |
+ event->y >= sender->allocation.height) { |
+ return FALSE; |
+ } |
+ |
const BookmarkNode* node = bar->GetNodeForToolButton(sender); |
DCHECK(node); |
DCHECK(bar->page_navigator_); |