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

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

Issue 2046733003: Replicate WebInsecureRequestPolicy instead of a bool for strict mixed content checks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@securitycontext
Patch Set: alexmos@ Created 4 years, 6 months 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
« no previous file with comments | « content/test/test_render_frame_host.cc ('k') | third_party/WebKit/Source/core/loader/FrameLoaderClient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index 697a04b5a43ac986c71ab2cb0b48c6751cfcca1b..3f9fadbc273a6d4d669898e9393e5bbdb82ed9f0 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -5866,9 +5866,8 @@ void Document::enforceInsecureRequestPolicy(WebInsecureRequestPolicy policy)
// existing policy or the newly enforced policy triggers upgrades or
// blockage.
setInsecureRequestPolicy(getInsecureRequestPolicy() | policy);
-
- if (frame() && policy & kBlockAllMixedContent)
- frame()->loader().client()->didEnforceStrictMixedContentChecking();
+ if (frame())
+ frame()->loader().client()->didEnforceInsecureRequestPolicy(getInsecureRequestPolicy());
}
void Document::setShadowCascadeOrder(ShadowCascadeOrder order)
« no previous file with comments | « content/test/test_render_frame_host.cc ('k') | third_party/WebKit/Source/core/loader/FrameLoaderClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698