mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fixes widget host fetching from render view host (#21014)
This commit is contained in:
@@ -796,9 +796,8 @@ void WebContents::BeforeUnloadFired(bool proceed,
|
||||
}
|
||||
|
||||
void WebContents::RenderViewCreated(content::RenderViewHost* render_view_host) {
|
||||
auto* const impl = content::RenderWidgetHostImpl::FromID(
|
||||
render_view_host->GetProcess()->GetID(),
|
||||
render_view_host->GetRoutingID());
|
||||
auto* impl = static_cast<content::RenderWidgetHostImpl*>(
|
||||
render_view_host->GetWidget());
|
||||
if (impl)
|
||||
impl->disable_hidden_ = !background_throttling_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user