Index: third_party/WebKit/Source/core/loader/FrameFetchContext.cpp |
diff --git a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp |
index aa986da062980b4657e40698427d4c02a6dcb094..2864434de910ca3e42efc58728854fa8f5544e3b 100644 |
--- a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp |
+++ b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp |
@@ -837,9 +837,11 @@ SecurityOrigin* FrameFetchContext::getSecurityOrigin() const { |
return m_document ? m_document->getSecurityOrigin() : nullptr; |
} |
-void FrameFetchContext::upgradeInsecureRequest( |
- ResourceRequest& resourceRequest) { |
- frame()->loader().upgradeInsecureRequest(resourceRequest, m_document); |
+void FrameFetchContext::modifyRequestForCSP(ResourceRequest& resourceRequest) { |
+ // Record the latest requiredCSP value that will be used when sending this |
+ // request. |
+ frame()->loader().recordLatestRequiredCSP(); |
+ frame()->loader().modifyRequestForCSP(resourceRequest, m_document); |
} |
void FrameFetchContext::addClientHintsIfNecessary(FetchRequest& fetchRequest) { |