| Index: Source/core/loader/FrameLoader.cpp
|
| diff --git a/Source/core/loader/FrameLoader.cpp b/Source/core/loader/FrameLoader.cpp
|
| index d73762d3dbf03e4e6b14aa4a095aea1767ec6d14..6d13c340ae3efdb10973e49096e9b344f2676df9 100644
|
| --- a/Source/core/loader/FrameLoader.cpp
|
| +++ b/Source/core/loader/FrameLoader.cpp
|
| @@ -1439,4 +1439,18 @@ SandboxFlags FrameLoader::effectiveSandboxFlags() const
|
| return flags;
|
| }
|
|
|
| +bool FrameLoader::shouldEnforceStrictMixedContentChecking() const
|
| +{
|
| + Frame* parentFrame = m_frame->tree().parent();
|
| + if (!parentFrame)
|
| + return false;
|
| +
|
| + // FIXME: We need a way to propagate strict mixed content checking flags to
|
| + // out-of-process frames. For now, we'll always enforce.
|
| + if (!parentFrame->isLocalFrame())
|
| + return true;
|
| +
|
| + return toLocalFrame(parentFrame)->document()->shouldEnforceStrictMixedContentChecking();
|
| +}
|
| +
|
| } // namespace blink
|
|
|