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

Unified Diff: Source/core/fetch/ResourceFetcher.cpp

Issue 980213002: Rename InsecureContentPolicy to InsecureRequestsPolicy. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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
« no previous file with comments | « Source/core/dom/SecurityContext.cpp ('k') | Source/core/fetch/ResourceFetcherTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fetch/ResourceFetcher.cpp
diff --git a/Source/core/fetch/ResourceFetcher.cpp b/Source/core/fetch/ResourceFetcher.cpp
index 54c1540984659a3ca76ca1dbca88b12a675ccd44..4539a04d838e6c3a7fd524cee244a31cc4aa923b 100644
--- a/Source/core/fetch/ResourceFetcher.cpp
+++ b/Source/core/fetch/ResourceFetcher.cpp
@@ -885,7 +885,7 @@ void ResourceFetcher::upgradeInsecureRequest(FetchRequest& fetchRequest)
if (fetchRequest.resourceRequest().frameType() != WebURLRequest::FrameTypeNone && !SecurityOrigin::isSecure(url))
fetchRequest.mutableResourceRequest().addHTTPHeaderField("Prefer", "return=secure-representation");
- if (document()->insecureContentPolicy() == SecurityContext::InsecureContentUpgrade && url.protocolIs("http")) {
+ if (document()->insecureRequestsPolicy() == SecurityContext::InsecureRequestsUpgrade && url.protocolIs("http")) {
// We always upgrade subresource requests and nested frames, we always upgrade form
// submissions, and we always upgrade requests whose host matches the host of the
// containing document's security origin.
« no previous file with comments | « Source/core/dom/SecurityContext.cpp ('k') | Source/core/fetch/ResourceFetcherTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698