Index: chrome/renderer/chrome_content_renderer_client.cc |
diff --git a/chrome/renderer/chrome_content_renderer_client.cc b/chrome/renderer/chrome_content_renderer_client.cc |
index 72a3cd95e4555fec9c144a5e2873fe9c520d6a45..6346a76bfd510fc6b8bc417432eee0478806f38f 100644 |
--- a/chrome/renderer/chrome_content_renderer_client.cc |
+++ b/chrome/renderer/chrome_content_renderer_client.cc |
@@ -517,6 +517,13 @@ void ChromeContentRendererClient::RenderThreadStarted() { |
WebSecurityPolicy::addOriginTrustworthyWhiteList( |
WebSecurityOrigin::create(origin)); |
} |
+ |
+ std::set<std::string> schemes; |
+ GetSchemesBypassingSecureContextCheckWhitelist(&schemes); |
+ for (const std::string& scheme : schemes) { |
+ WebSecurityPolicy::addSchemeToBypassSecureContextWhitelist( |
+ WebString::fromUTF8(scheme)); |
+ } |
} |
void ChromeContentRendererClient::RenderFrameCreated( |