Fix assert failure when hiding the OSR widget (fixes issue #2631)

This commit is contained in:
Riku Palomäki 2019-04-15 17:25:30 +00:00 committed by Marshall Greenblatt
parent 5623338662
commit 1beec23065
1 changed files with 2 additions and 2 deletions

View File

@ -535,6 +535,8 @@ void CefRenderWidgetHostViewOSR::Hide() {
if (!is_showing_)
return;
is_showing_ = false;
if (browser_impl_.get())
browser_impl_->CancelContextMenu();
@ -547,8 +549,6 @@ void CefRenderWidgetHostViewOSR::Hide() {
GetDelegatedFrameHost()->WasHidden();
GetDelegatedFrameHost()->DetachFromCompositor();
#endif
is_showing_ = false;
}
bool CefRenderWidgetHostViewOSR::IsShowing() {