Chromium Code Reviews| Index: content/browser/renderer_host/render_process_host_impl.cc |
| diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc |
| index c8cbea2370ade26c37a59d63bc45b09ecf01a971..5e24dc617201386eada59469550744e9bc6f8fb4 100644 |
| --- a/content/browser/renderer_host/render_process_host_impl.cc |
| +++ b/content/browser/renderer_host/render_process_host_impl.cc |
| @@ -2357,7 +2357,10 @@ void RenderProcessHostImpl::FilterURL(RenderProcessHost* rph, |
| if (url->SchemeIs(url::kAboutScheme)) { |
| // The renderer treats all URLs in the about: scheme as being about:blank. |
| // Canonicalize about: URLs to about:blank. |
| - *url = GURL(url::kAboutBlankURL); |
| + // An exception is made for about:srddoc. |
|
nasko
2016/11/15 17:15:23
nit: s/srddoc/srcdoc/
arthursonzogni
2016/11/17 17:04:58
Done.
|
| + if (*url != kAboutSrcDocURL) |
| + *url = GURL(url::kAboutBlankURL); |
| + return; |
| } |
| if (!policy->CanRequestURL(rph->GetID(), *url)) { |