| Index: chrome/browser/tab_contents/render_view_context_menu.cc
|
| diff --git a/chrome/browser/tab_contents/render_view_context_menu.cc b/chrome/browser/tab_contents/render_view_context_menu.cc
|
| index 77b4ff5d7b59d01e78daffdc1c204d8d89a9315f..0d6a5db7ca85d7d8828cf84b343cbae79f0ee9cc 100644
|
| --- a/chrome/browser/tab_contents/render_view_context_menu.cc
|
| +++ b/chrome/browser/tab_contents/render_view_context_menu.cc
|
| @@ -1350,6 +1350,7 @@ bool RenderViewContextMenu::IsCommandIdEnabled(int id) const {
|
| // the page) from the NavigationEntry because its reflects their origin
|
| // rather than the display one (returned by GetURL) which may be
|
| // different (like having "view-source:" on the front).
|
| + // TODO(nasko): Audit all GetActiveEntry calls in this file.
|
| NavigationEntry* active_entry =
|
| source_web_contents_->GetController().GetActiveEntry();
|
| return content::IsSavableURL(
|
| @@ -1771,7 +1772,9 @@ void RenderViewContextMenu::ExecuteCommand(int id, int event_flags) {
|
|
|
| case IDC_CONTENT_CONTEXT_VIEWPAGEINFO: {
|
| NavigationController* controller = &source_web_contents_->GetController();
|
| - NavigationEntry* nav_entry = controller->GetActiveEntry();
|
| + // Important to use GetVisibleEntry to match what's showing in the
|
| + // omnibox.
|
| + NavigationEntry* nav_entry = controller->GetVisibleEntry();
|
| Browser* browser =
|
| chrome::FindBrowserWithWebContents(source_web_contents_);
|
| chrome::ShowWebsiteSettings(browser, source_web_contents_,
|
|
|