mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-27 01:17:43 +01:00
Set visibility state correctly after OSR renderer process crashes and avoid DCHECKs (issue #1779)
This commit is contained in:
parent
6824387c8d
commit
903e296621
@ -457,6 +457,10 @@ void CefContentBrowserClient::RenderProcessWillLaunch(
|
||||
new extensions::ExtensionsGuestViewMessageFilter(id, browser_context));
|
||||
}
|
||||
|
||||
// If the renderer process crashes then the host may already have
|
||||
// CefBrowserInfoManager as an observer. Try to remove it first before adding
|
||||
// to avoid DCHECKs.
|
||||
host->RemoveObserver(CefBrowserInfoManager::GetInstance());
|
||||
host->AddObserver(CefBrowserInfoManager::GetInstance());
|
||||
|
||||
host->Send(new CefProcessMsg_SetIsIncognitoProcess(
|
||||
|
@ -451,7 +451,7 @@ CefRenderWidgetHostViewOSR::CefRenderWidgetHostViewOSR(
|
||||
parent_host_view_(parent_host_view),
|
||||
popup_host_view_(NULL),
|
||||
child_host_view_(NULL),
|
||||
is_showing_(true),
|
||||
is_showing_(!render_widget_host_->is_hidden()),
|
||||
is_destroyed_(false),
|
||||
is_scroll_offset_changed_pending_(false),
|
||||
#if defined(OS_MACOSX)
|
||||
|
Loading…
x
Reference in New Issue
Block a user