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 088ef5c2aa02dcfc305a0836a4451758cf4fa54c..bffbd86c29fe7896748a8ba670e647c91d008c9f 100644 |
--- a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp |
+++ b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp |
@@ -834,9 +834,10 @@ 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) { |