| Index: third_party/WebKit/Source/core/html/HTMLFrameElementBase.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLFrameElementBase.cpp b/third_party/WebKit/Source/core/html/HTMLFrameElementBase.cpp
|
| index cfa82039cce6ec957d62d48125a42d95245c3e86..2a0c62e18e90c47fb84a22bb89375021bc3e68a9 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLFrameElementBase.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLFrameElementBase.cpp
|
| @@ -59,8 +59,7 @@ bool HTMLFrameElementBase::isURLAllowed() const
|
| const KURL& completeURL = document().completeURL(m_URL);
|
|
|
| if (protocolIsJavaScript(completeURL)) {
|
| - Document* contentDoc = this->contentDocument();
|
| - if (contentDoc && !ScriptController::canAccessFromCurrentOrigin(contentDoc->frame()))
|
| + if (contentFrame() && !ScriptController::canAccessFromCurrentOrigin(document(), contentFrame()))
|
| return false;
|
| }
|
|
|
|
|