Index: third_party/WebKit/Source/core/page/FrameTree.cpp |
diff --git a/third_party/WebKit/Source/core/page/FrameTree.cpp b/third_party/WebKit/Source/core/page/FrameTree.cpp |
index 6ec877110709deef111a9fa6563e6c4cc59bc561..85bcb3422b274e357f1f87ed039d03dcafe958b5 100644 |
--- a/third_party/WebKit/Source/core/page/FrameTree.cpp |
+++ b/third_party/WebKit/Source/core/page/FrameTree.cpp |
@@ -430,7 +430,7 @@ Frame* FrameTree::find(const AtomicString& name) const { |
// Search the entire tree of each of the other pages in this namespace. |
// FIXME: Is random order OK? |
for (const Page* otherPage : Page::ordinaryPages()) { |
- if (otherPage == page) |
+ if (otherPage == page || otherPage->isClosing()) |
dcheng
2016/12/15 19:11:38
Another alternative is to check the main frame's w
|
continue; |
for (Frame* frame = otherPage->mainFrame(); frame; |
frame = frame->tree().traverseNext()) { |