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

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: fix BuildPolicy argument Created 3 years, 7 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 772b48e6dbface86415d6e636a7f3efa6acd07db..341dedc93c5c75bf6e9b4b2e244809344d5e08e2 100644
--- a/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp
+++ b/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp
@@ -1397,6 +1397,11 @@ WebContentSecurityPolicy CSPDirectiveList::ExposeForNavigationalChecks() const {
directive->ExposeForNavigationalChecks()});
}
}
+ if (upgrade_insecure_requests_) {
+ directives.push_back(WebContentSecurityPolicyDirective{
+ blink::WebString("upgrade-insecure-requests"),
Mike West 2017/05/30 07:36:30 Can you add this directive to the method's comment
estark 2017/06/01 04:18:30 Done.
+ WebContentSecurityPolicySourceList()});
+ }
policy.directives = directives;
policy.report_endpoints = ReportEndpoints();
policy.header = Header();

Powered by Google App Engine
This is Rietveld 408576698