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 fa4b189a5eafd8a3f8d42718e3da1e3b815d7dd9..1a13982f1d8bdd423b064121a1de0a5ae7eb4a35 100644 |
--- a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp |
+++ b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp |
@@ -951,6 +951,13 @@ void FrameFetchContext::modifyRequestForCSP(ResourceRequest& resourceRequest) { |
frame()->loader().modifyRequestForCSP(resourceRequest, m_document); |
} |
+WebInsecureRequestPolicy FrameFetchContext::getInsecureRequestPolicy() const { |
+ // If no document is present (during frame navigation, for instance), use the |
+ // FrameLoader's policy. |
+ return m_document ? m_document->getInsecureRequestPolicy() |
+ : frame()->loader().getInsecureRequestPolicy(); |
+} |
+ |
void FrameFetchContext::addClientHintsIfNecessary( |
const ClientHintsPreferences& hintsPreferences, |
const FetchRequest::ResourceWidth& resourceWidth, |