| 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 4b3c12d691e34cd3cf3e0626129cbe609043127d..5ee851727a0e0a25704f064a089ab69d52df2a1a 100644
|
| --- a/content/browser/frame_host/cross_process_frame_connector.cc
|
| +++ b/content/browser/frame_host/cross_process_frame_connector.cc
|
| @@ -276,10 +276,14 @@ void CrossProcessFrameConnector::OnVisibilityChanged(bool visible) {
|
| return;
|
| }
|
|
|
| - if (visible)
|
| + if (visible &&
|
| + !RenderWidgetHostImpl::From(view_->GetRenderWidgetHost())
|
| + ->delegate()
|
| + ->IsHidden()) {
|
| view_->Show();
|
| - else
|
| + } else if (!visible) {
|
| view_->Hide();
|
| + }
|
| }
|
|
|
| void CrossProcessFrameConnector::SetDeviceScaleFactor(float scale_factor) {
|
|
|