Index: content/browser/accessibility/accessibility_ui.cc |
diff --git a/content/browser/accessibility/accessibility_ui.cc b/content/browser/accessibility/accessibility_ui.cc |
index d5a9734b0eb28177f8f70faf04cddfa372647069..7808cc1c5ffc76eb3aa14162ecda815ed66807a4 100644 |
--- a/content/browser/accessibility/accessibility_ui.cc |
+++ b/content/browser/accessibility/accessibility_ui.cc |
@@ -72,10 +72,12 @@ base::DictionaryValue* BuildTargetDescriptor(RenderViewHost* rvh) { |
GURL url; |
GURL favicon_url; |
if (web_contents) { |
+ // TODO(nasko): Fix the following code to use a consistent set of data |
+ // across the URL, title, and favicon. |
url = web_contents->GetURL(); |
title = UTF16ToUTF8(web_contents->GetTitle()); |
NavigationController& controller = web_contents->GetController(); |
- NavigationEntry* entry = controller.GetActiveEntry(); |
+ NavigationEntry* entry = controller.GetVisibleEntry(); |
if (entry != NULL && entry->GetURL().is_valid()) |
favicon_url = entry->GetFavicon().url; |
} |