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

Unified Diff: content/renderer/render_view_impl.cc

Issue 1251243005: Introduce a field trial to strictly block "blockable" mixed content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test. Created 5 years, 5 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/public/common/web_preferences.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 7de5b2a777af159a6b91613039f110c03e22d6a2..8c0ac57d4bf95c606086bb514f7a2ff2de5e106a 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -1064,6 +1064,10 @@ void RenderView::ApplyWebPreferences(const WebPreferences& prefs,
prefs.allow_running_insecure_content);
settings->setDisableReadingFromCanvas(prefs.disable_reading_from_canvas);
settings->setStrictMixedContentChecking(prefs.strict_mixed_content_checking);
+
+ settings->setStrictlyBlockBlockableMixedContent(
+ prefs.strictly_block_blockable_mixed_content);
+
settings->setStrictPowerfulFeatureRestrictions(
prefs.strict_powerful_feature_restrictions);
settings->setPasswordEchoEnabled(prefs.password_echo_enabled);
« no previous file with comments | « content/public/common/web_preferences.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698