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(); |