| Index: Source/core/loader/DocumentLoader.cpp
|
| diff --git a/Source/core/loader/DocumentLoader.cpp b/Source/core/loader/DocumentLoader.cpp
|
| index e8808e0dcee2844b2acdf384f851241b2e84f0b2..bd0d5d123dfd32f1adcf9a6a74dbdd61a43c48e6 100644
|
| --- a/Source/core/loader/DocumentLoader.cpp
|
| +++ b/Source/core/loader/DocumentLoader.cpp
|
| @@ -486,9 +486,9 @@ void DocumentLoader::willSendRequest(ResourceRequest& newRequest, const Resource
|
| if (newRequest.cachePolicy() == UseProtocolCachePolicy && isPostOrRedirectAfterPost(newRequest, redirectResponse))
|
| newRequest.setCachePolicy(ReloadIgnoringCacheData);
|
|
|
| - Frame* parent = m_frame->tree()->parent();
|
| - if (parent) {
|
| - if (!parent->loader()->mixedContentChecker()->canRunInsecureContent(parent->document()->securityOrigin(), newRequest.url())) {
|
| + Frame* top = m_frame->tree()->top();
|
| + if (top) {
|
| + if (!top->loader()->mixedContentChecker()->canDisplayInsecureContent(top->document()->securityOrigin(), newRequest.url())) {
|
| cancelMainResourceLoad(frameLoader()->cancelledError(newRequest));
|
| return;
|
| }
|
|
|