Index: Source/core/inspector/InspectorDOMAgent.cpp |
diff --git a/Source/core/inspector/InspectorDOMAgent.cpp b/Source/core/inspector/InspectorDOMAgent.cpp |
index 10d432c7c3f350d9ff0e6cc8c16cf66657fc3a7b..8cf962e87e9c346f6df13bdf2c6cafd77a6838ef 100644 |
--- a/Source/core/inspector/InspectorDOMAgent.cpp |
+++ b/Source/core/inspector/InspectorDOMAgent.cpp |
@@ -1777,7 +1777,9 @@ void InspectorDOMAgent::didCommitLoad(LocalFrame* frame, DocumentLoader* loader) |
// FIXME: If "frame" is always guarenteed to be in the same Page as loader->frame() |
// then all we need to check here is loader->frame()->isMainFrame() |
// and we don't need "frame" at all. |
- LocalFrame* mainFrame = frame->page()->mainFrame(); |
+ if (!frame->page()->mainFrame()->isLocalFrame()) |
+ return; |
+ LocalFrame* mainFrame = frame->page()->deprecatedLocalMainFrame(); |
if (loader->frame() != mainFrame) { |
invalidateFrameOwnerElement(loader->frame()); |
return; |