Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(727)

Unified Diff: third_party/WebKit/Source/core/page/FrameTree.cpp

Issue 2580703003: Make sure pages that are closing but not yet closed are still suspended. (Closed)
Patch Set: comments Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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()) {

Powered by Google App Engine
This is Rietveld 408576698