Chromium Code Reviews| Index: content/browser/web_contents/web_contents_impl.cc |
| diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc |
| index 7cb9e0ed1be43cbf47c9b7c47186fed214549f16..fe52ac01886bedfc97b83dcbff7cf5a70b23bc6f 100644 |
| --- a/content/browser/web_contents/web_contents_impl.cc |
| +++ b/content/browser/web_contents/web_contents_impl.cc |
| @@ -215,6 +215,9 @@ void MakeNavigateParams(const NavigationEntryImpl& entry, |
| entry.transferred_global_request_id().child_id; |
| params->transferred_request_request_id = |
| entry.transferred_global_request_id().request_id; |
| + // We only want to allow downloading if "view-source:" is not pre-pended. |
|
darin (slow to review)
2012/04/26 21:54:49
nit: no need to repeat the code so precisely in th
|
| + params->allow_download = |
| + !entry.GetVirtualURL().SchemeIs(chrome::kViewSourceScheme); |
| if (delegate) |
| delegate->AddNavigationHeaders(params->url, ¶ms->extra_headers); |