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 aacb2082ace4ff6eb9b0ff2ccc3eb5aa7806d20e..8310c67737bcdb508934d19d737ec439d712d036 100644 |
--- a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp |
+++ b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp |
@@ -837,9 +837,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) { |