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

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

Issue 1991273003: Fire visibilityChange event on out-of-process iframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: WebView->WebFrame Created 4 years, 6 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: third_party/WebKit/Source/core/page/Page.cpp
diff --git a/third_party/WebKit/Source/core/page/Page.cpp b/third_party/WebKit/Source/core/page/Page.cpp
index 82058afac1f57815432cc43513d18efd05ce3340..aa8c2907753f2125ef3adaf225a2a21917e30c2e 100644
--- a/third_party/WebKit/Source/core/page/Page.cpp
+++ b/third_party/WebKit/Source/core/page/Page.cpp
@@ -355,8 +355,8 @@ void Page::setVisibilityState(PageVisibilityState visibilityState, bool isInitia
if (!isInitialState)
notifyPageVisibilityChanged();
- if (!isInitialState && m_mainFrame && m_mainFrame->isLocalFrame())
- deprecatedLocalMainFrame()->didChangeVisibilityState();
+ if (!isInitialState && m_mainFrame)
+ m_mainFrame->didChangeVisibilityState();
// Compress CompressibleStrings when 10 seconds have passed since the page
// went to background.

Powered by Google App Engine
This is Rietveld 408576698