Index: chrome/browser/renderer_context_menu/render_view_context_menu.cc |
diff --git a/chrome/browser/renderer_context_menu/render_view_context_menu.cc b/chrome/browser/renderer_context_menu/render_view_context_menu.cc |
index e7b57ee9ec29b050e78c5c5b519e5f7d9eddf515..fc5ae9c571c60da9c4bac490f75a0c234bddfb36 100644 |
--- a/chrome/browser/renderer_context_menu/render_view_context_menu.cc |
+++ b/chrome/browser/renderer_context_menu/render_view_context_menu.cc |
@@ -1146,7 +1146,8 @@ bool RenderViewContextMenu::IsCommandIdEnabled(int id) const { |
case IDC_VIEW_SOURCE: |
case IDC_CONTENT_CONTEXT_VIEWFRAMESOURCE: |
- return embedder_web_contents_->GetController().CanViewSource(); |
+ return (params_.media_type != WebContextMenuData::MediaTypePlugin) && |
+ embedder_web_contents_->GetController().CanViewSource(); |
case IDC_CONTENT_CONTEXT_INSPECTELEMENT: |
case IDC_CONTENT_CONTEXT_INSPECTBACKGROUNDPAGE: |