Chromium Code Reviews| Index: content/browser/frame_host/navigation_request.cc |
| diff --git a/content/browser/frame_host/navigation_request.cc b/content/browser/frame_host/navigation_request.cc |
| index ddbc83136f8991d8655256ef4630aaa3bf83e05c..23eccb1b27444f3a1ad937f5670299cd5d386b84 100644 |
| --- a/content/browser/frame_host/navigation_request.cc |
| +++ b/content/browser/frame_host/navigation_request.cc |
| @@ -126,6 +126,11 @@ void AddAdditionalRequestHeaders(net::HttpRequestHeaders* headers, |
| headers->SetHeaderIfMissing(net::HttpRequestHeaders::kUserAgent, |
| GetContentClient()->GetUserAgent()); |
| + |
| + // Tack an 'Upgrade-Insecure-Requests' header to outgoing navigational |
|
clamy
2016/11/02 14:01:30
This is called also for subframe navigations, is t
arthursonzogni
2016/11/02 16:55:28
Yes it is.
The browser-side implementation is putt
|
| + // requests, as described in |
| + // https://w3c.github.io/webappsec/specs/upgrade/#feature-detect |
| + headers->AddHeaderFromString("Upgrade-Insecure-Requests: 1"); |
| } |
| } // namespace |