Index: chrome/browser/ui/browser.cc |
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc |
index 059efd26b506f7cdef195a44c7245636f0498256..fe68d18dacef735618cc45dde6baf08110c07f19 100644 |
--- a/chrome/browser/ui/browser.cc |
+++ b/chrome/browser/ui/browser.cc |
@@ -1441,7 +1441,7 @@ void Browser::BeforeUnloadFired(WebContents* web_contents, |
bool Browser::ShouldFocusLocationBarByDefault(WebContents* source) { |
const content::NavigationEntry* entry = |
- source->GetController().GetActiveEntry(); |
+ source->GetController().GetVisibleEntry(); |
if (entry) { |
GURL url = entry->GetURL(); |
GURL virtual_url = entry->GetVirtualURL(); |