Index: Source/core/dom/Document.cpp |
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
index 60e88e76cdaa763f82413afc5c5cb87c54c001c3..5cbbe5a7c92e6dd891105a830225a1b2260120fa 100644 |
--- a/Source/core/dom/Document.cpp |
+++ b/Source/core/dom/Document.cpp |
@@ -4777,6 +4777,8 @@ void Document::initSecurityContext(const DocumentInit& initializer) |
// loading URL with a fresh content security policy. |
m_cookieURL = m_url; |
enforceSandboxFlags(initializer.sandboxFlags()); |
+ if (initializer.shouldEnforceStrictMixedContentChecking()) |
+ enforceStrictMixedContentChecking(); |
setSecurityOrigin(isSandboxed(SandboxOrigin) ? SecurityOrigin::createUnique() : SecurityOrigin::create(m_url)); |
if (importsController()) { |