| Index: Source/core/loader/FrameLoader.cpp
|
| diff --git a/Source/core/loader/FrameLoader.cpp b/Source/core/loader/FrameLoader.cpp
|
| index 64701ab3aa37ded93480739484ba1185ef8bd5a1..194e4009a959117ae998d57a32689ca5f5b8bbdc 100644
|
| --- a/Source/core/loader/FrameLoader.cpp
|
| +++ b/Source/core/loader/FrameLoader.cpp
|
| @@ -1402,4 +1402,18 @@ bool FrameLoader::shouldEnforceStrictMixedContentChecking() const
|
| return toLocalFrame(parentFrame)->document()->shouldEnforceStrictMixedContentChecking();
|
| }
|
|
|
| +SecurityContext::InsecureContentPolicy FrameLoader::insecureContentPolicy() const
|
| +{
|
| + Frame* parentFrame = m_frame->tree().parent();
|
| + if (!parentFrame)
|
| + return SecurityContext::InsecureContentDoNotUpgrade;
|
| +
|
| + // FIXME: We need a way to propagate insecure content policy flags to
|
| + // out-of-process frames. For now, we'll always use default behavior.
|
| + if (!parentFrame->isLocalFrame())
|
| + return SecurityContext::InsecureContentDoNotUpgrade;
|
| +
|
| + return toLocalFrame(parentFrame)->document()->insecureContentPolicy();
|
| +}
|
| +
|
| } // namespace blink
|
|
|