| 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..a6d0e9379e92466e3071e9ceb078b56b56eea510 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(toIsolate(&document()), contentFrame()))
|
| return false;
|
| }
|
|
|
|
|