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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 2154833002: Ignore show messages from RemoteFrames when the WebContents is hidden. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 4 years, 5 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 | « content/browser/renderer_host/render_widget_host_delegate.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index a9bb2ae9a77e2693e017881f3a95994fabf76048..af746edb84b7ab2ea792e6c4373ab70b4caa4c36 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -1951,9 +1951,9 @@ void WebContentsImpl::ForwardCompositorProto(
}
void WebContentsImpl::OnRenderFrameProxyVisibilityChanged(bool visible) {
- if (visible)
+ if (visible && !GetOuterWebContents()->IsHidden())
WasShown();
- else
+ else if (!visible)
WasHidden();
}
« no previous file with comments | « content/browser/renderer_host/render_widget_host_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698