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

Unified Diff: Source/web/WebLocalFrameImpl.cpp

Issue 538323003: Have window.closed return true when frame is closed. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update m_hasBeenClosed comment Created 6 years, 3 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
Index: Source/web/WebLocalFrameImpl.cpp
diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp
index a4ef3ca69934b7c524ef56777bdbae44b3460cab..9f62bd60aed6cdadb26008285af540d5e9a360a4 100644
--- a/Source/web/WebLocalFrameImpl.cpp
+++ b/Source/web/WebLocalFrameImpl.cpp
@@ -498,6 +498,9 @@ void WebLocalFrameImpl::close()
{
m_client = 0;
+ if (m_frame)
+ m_frame->setHasBeenClosed();
+
deref(); // Balances ref() acquired in WebFrame::create
}

Powered by Google App Engine
This is Rietveld 408576698