| Index: Source/core/inspector/InspectorDOMAgent.cpp
|
| diff --git a/Source/core/inspector/InspectorDOMAgent.cpp b/Source/core/inspector/InspectorDOMAgent.cpp
|
| index 27fb46ab2b2f83f512b440c7d1fafc8e71e05680..e83647292cf1cb92a542d12a0fcccd9389f48bfb 100644
|
| --- a/Source/core/inspector/InspectorDOMAgent.cpp
|
| +++ b/Source/core/inspector/InspectorDOMAgent.cpp
|
| @@ -1497,7 +1497,8 @@ PassRefPtr<TypeBuilder::DOM::Node> InspectorDOMAgent::buildObjectForNode(Node* n
|
|
|
| if (node->isFrameOwnerElement()) {
|
| HTMLFrameOwnerElement* frameOwner = toHTMLFrameOwnerElement(node);
|
| - if (LocalFrame* frame = frameOwner->contentFrame())
|
| + LocalFrame* frame = (frameOwner->contentFrame() && frameOwner->contentFrame()->isLocalFrame()) ? toLocalFrame(frameOwner->contentFrame()) : 0;
|
| + if (frame)
|
| value->setFrameId(m_pageAgent->frameId(frame));
|
| if (Document* doc = frameOwner->contentDocument())
|
| value->setContentDocument(buildObjectForNode(doc, 0, nodesMap));
|
|
|