summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/tab_contents')
-rw-r--r--chrome/browser/tab_contents/render_view_context_menu_controller.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/tab_contents/render_view_context_menu_controller.cc b/chrome/browser/tab_contents/render_view_context_menu_controller.cc
index 7a43ff3..0613191 100644
--- a/chrome/browser/tab_contents/render_view_context_menu_controller.cc
+++ b/chrome/browser/tab_contents/render_view_context_menu_controller.cc
@@ -134,6 +134,14 @@ bool RenderViewContextMenuController::IsCommandEnabled(int id) const {
URLRequest::IsHandledURL(params_.image_url);
case IDS_CONTENT_CONTEXT_OPENIMAGENEWTAB:
+ // The images shown in the most visited thumbnails do not currently open
+ // in a new tab as they should. Disabling this context menu option for
+ // now, as a quick hack, before we resolve this issue (Issue = 2608).
+ // TODO (sidchat): Enable this option once this issue is resolved.
+ if (params_.image_url.scheme() == "chrome-ui")
+ return false;
+ return true;
+
case IDS_CONTENT_CONTEXT_COPYIMAGELOCATION:
return params_.image_url.is_valid();