Index: content/browser/frame_host/cross_process_frame_connector.cc |
diff --git a/content/browser/frame_host/cross_process_frame_connector.cc b/content/browser/frame_host/cross_process_frame_connector.cc |
index 1d8b23c041186c75129f4e8b0e6e2c893fe119a8..47822657a022cf1dd0eaa50e1889a082e0553308 100644 |
--- a/content/browser/frame_host/cross_process_frame_connector.cc |
+++ b/content/browser/frame_host/cross_process_frame_connector.cc |
@@ -233,6 +233,17 @@ void CrossProcessFrameConnector::OnVisibilityChanged(bool visible) { |
if (!view_) |
return; |
+ // If there is an inner WebContents, iot should be notified of the change in |
lazyboy
2016/01/20 00:45:35
s/iot/it.
EhsanK
2016/01/26 18:36:27
Done.
|
+ // the visibility. |
kenrb
2016/01/22 22:26:01
I would suggest expanding the comment to explain w
EhsanK
2016/01/26 18:36:27
Done.
|
+ if (frame_proxy_in_parent_renderer_->frame_tree_node() |
+ ->render_manager() |
+ ->ForInnerDelegate()) { |
+ RenderWidgetHostImpl::From(view_->GetRenderWidgetHost()) |
+ ->delegate() |
+ ->ForwardVisibilityChange(visible); |
no sievers
2016/01/26 20:33:06
Something feels off about this needing to bubble u
EhsanK
2016/01/27 16:03:22
Acknowledged. As there is a separate WebContents h
kenrb
2016/01/27 16:38:16
I might not entirely understand your reasoning, bu
|
+ return; |
+ } |
+ |
if (visible) |
view_->Show(); |
else |