| Index: chrome/browser/ui/gtk/location_bar_view_gtk.cc
|
| diff --git a/chrome/browser/ui/gtk/location_bar_view_gtk.cc b/chrome/browser/ui/gtk/location_bar_view_gtk.cc
|
| index 95693c253420b9305e64a2a2d847f75150bc2440..5efa56333f548790635beedc720f1ae07373db55 100644
|
| --- a/chrome/browser/ui/gtk/location_bar_view_gtk.cc
|
| +++ b/chrome/browser/ui/gtk/location_bar_view_gtk.cc
|
| @@ -1371,7 +1371,8 @@ gboolean LocationBarViewGtk::OnIconReleased(GtkWidget* sender,
|
| if (event->x == 0 && event->y == 0)
|
| return FALSE;
|
|
|
| - NavigationEntry* nav_entry = tab->GetController().GetActiveEntry();
|
| + // Important to use GetVisibleEntry to match what's showing in the omnibox.
|
| + NavigationEntry* nav_entry = tab->GetController().GetVisibleEntry();
|
| if (!nav_entry) {
|
| NOTREACHED();
|
| return FALSE;
|
|
|