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