| Index: Source/core/html/HTMLFrameOwnerElement.cpp
|
| diff --git a/Source/core/html/HTMLFrameOwnerElement.cpp b/Source/core/html/HTMLFrameOwnerElement.cpp
|
| index 9b9dccac4d1737f10633440e0a255f202f107452..ee505a784bb9a17e06ac366c3669c7d1234e21b5 100644
|
| --- a/Source/core/html/HTMLFrameOwnerElement.cpp
|
| +++ b/Source/core/html/HTMLFrameOwnerElement.cpp
|
| @@ -152,7 +152,7 @@ HTMLFrameOwnerElement::~HTMLFrameOwnerElement()
|
|
|
| Document* HTMLFrameOwnerElement::contentDocument() const
|
| {
|
| - return m_contentFrame ? m_contentFrame->document() : 0;
|
| + return (m_contentFrame && m_contentFrame->isLocalFrame()) ? toLocalFrame(m_contentFrame)->document() : 0;
|
| }
|
|
|
| DOMWindow* HTMLFrameOwnerElement::contentWindow() const
|
|
|