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

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

Issue 2910573002: Implement upgrade-insecure-requests in browser for frame requests (Closed)
Patch Set: rebase Created 3 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 a3a696cf1af09abcbfff01c3a230e26261ac2e9b..a00a9bc92bebd99f73b60839421a86669737c9f2 100644
--- a/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp
+++ b/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp
@@ -1395,6 +1395,11 @@ WebContentSecurityPolicy CSPDirectiveList::ExposeForNavigationalChecks() const {
directive->ExposeForNavigationalChecks()});
}
}
+ if (upgrade_insecure_requests_) {
+ directives.push_back(WebContentSecurityPolicyDirective{
+ blink::WebString("upgrade-insecure-requests"),
+ WebContentSecurityPolicySourceList()});
+ }
policy.directives = directives;
policy.report_endpoints = ReportEndpoints();
policy.header = Header();
« no previous file with comments | « third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.h ('k') | third_party/WebKit/Source/core/loader/FrameLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698