| 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 baf159b83b4283163c2c6c9b047653f2fb008503..cdc186213c4d6ac4fcfd30c3c07fe6301a93be77 100644
|
| --- a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
|
| +++ b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
|
| @@ -869,6 +869,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(FetchRequest& fetchRequest) {
|
| if (!RuntimeEnabledFeatures::clientHintsEnabled() || !m_document)
|
| return;
|
|
|