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..cb6402307b2030656c96568e606001106ad7f1d1 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:srcdoc. |
+ if (*url != kAboutSrcDocURL) |
+ *url = GURL(url::kAboutBlankURL); |
+ return; |
Charlie Reis
2016/11/16 18:20:22
Was this return added for ChildPolicySecurityPolic
arthursonzogni
2016/11/17 17:04:58
Yes it was.
To be honest, I initially tried what y
Charlie Reis
2016/11/22 01:01:20
Yes, I think that makes sense, assuming we don't e
|
} |
if (!policy->CanRequestURL(rph->GetID(), *url)) { |