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

Unified Diff: Source/core/frame/Frame.cpp

Issue 1128403004: Fix Frame::isMainFrame() to be compatible with provisional frames (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update stuff Created 5 years, 7 months 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
« no previous file with comments | « no previous file | Source/web/WebRemoteFrameImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/Frame.cpp
diff --git a/Source/core/frame/Frame.cpp b/Source/core/frame/Frame.cpp
index 4f95ddfb6d8fea37c74c90f1e9df0369f3e741f3..3c41ee14c734906d2c7526d70c3daaf3196a8990 100644
--- a/Source/core/frame/Frame.cpp
+++ b/Source/core/frame/Frame.cpp
@@ -116,8 +116,7 @@ FrameHost* Frame::host() const
bool Frame::isMainFrame() const
{
- Page* page = this->page();
- return page && this == page->mainFrame();
+ return !tree().parent();
}
bool Frame::isLocalRoot() const
« no previous file with comments | « no previous file | Source/web/WebRemoteFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698