Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(576)

Unified Diff: Source/core/dom/Document.cpp

Issue 811773002: Mixed Content: Implement strict mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Tests. Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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()) {

Powered by Google App Engine
This is Rietveld 408576698