| Index: Source/core/inspector/InspectorDOMAgent.cpp
|
| diff --git a/Source/core/inspector/InspectorDOMAgent.cpp b/Source/core/inspector/InspectorDOMAgent.cpp
|
| index de39b4afa0c8a82d62de2e41ed2c81e99dbb6fd5..10b245a729caa2ce3ddcf71c3d6b17d02dbc5cac 100644
|
| --- a/Source/core/inspector/InspectorDOMAgent.cpp
|
| +++ b/Source/core/inspector/InspectorDOMAgent.cpp
|
| @@ -1533,7 +1533,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));
|
|
|