Fix incorrect OSR browser display during navigation (issue #2209)

This commit is contained in:
Marshall Greenblatt
2017-07-05 14:51:46 -04:00
parent 75acd20e9a
commit c080187908
4 changed files with 221 additions and 41 deletions

View File

@@ -198,6 +198,16 @@ void CefBrowserPlatformDelegateOsr::WasHidden(bool hidden) {
else
view->Show();
}
// Also notify the WebContentsImpl for consistency.
content::WebContentsImpl* web_contents =
static_cast<content::WebContentsImpl*>(browser_->web_contents());
if (web_contents) {
if (hidden)
web_contents->WasHidden();
else
web_contents->WasShown();
}
}
void CefBrowserPlatformDelegateOsr::NotifyScreenInfoChanged() {