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 ee4b49f311
commit 6e3c9897be

View File

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