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

Unified Diff: third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp

Issue 2046523005: Introduce WebInsecureRequestPolicy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp
diff --git a/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp b/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp
index d90f9266bb2925e3255599e4c592c0aeadb5c845..5a96d8b6b12a2bd0a72e5a5157841b62358180e6 100644
--- a/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp
+++ b/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp
@@ -670,7 +670,7 @@ void CSPDirectiveList::enableInsecureRequestsUpgrade(const String& name, const S
}
m_upgradeInsecureRequests = true;
- m_policy->setInsecureRequestsPolicy(SecurityContext::InsecureRequestsUpgrade);
+ m_policy->upgradeInsecureRequests();
if (!value.isEmpty())
m_policy->reportValueForEmptyDirective(name, value);
}

Powered by Google App Engine
This is Rietveld 408576698