fix: properly determine if WebContents is offscreen in WebContentsDelegate (backport: 3-1-x) (#16341)
This commit is contained in:
parent
034ea3cdfb
commit
17c00954bd
1 changed files with 1 additions and 1 deletions
|
@ -163,7 +163,7 @@ void CommonWebContentsDelegate::InitWithWebContents(
|
||||||
// Determien whether the WebContents is offscreen.
|
// Determien whether the WebContents is offscreen.
|
||||||
auto* web_preferences = WebContentsPreferences::From(web_contents);
|
auto* web_preferences = WebContentsPreferences::From(web_contents);
|
||||||
offscreen_ =
|
offscreen_ =
|
||||||
!web_preferences || web_preferences->IsEnabled(options::kOffscreen);
|
web_preferences && web_preferences->IsEnabled(options::kOffscreen);
|
||||||
|
|
||||||
// Create InspectableWebContents.
|
// Create InspectableWebContents.
|
||||||
web_contents_.reset(brightray::InspectableWebContents::Create(
|
web_contents_.reset(brightray::InspectableWebContents::Create(
|
||||||
|
|
Loading…
Reference in a new issue