Skip to content

fix: Fix compositor recycling when creating new BrowserView - #21399

Merged
zcbenz merged 1 commit into
8-x-yfrom
trop/8-x-y-bp-fix-fix-compositor-recycling-when-creating-new-browserview-1575567491352
Dec 10, 2019
Merged

zcbenz merged 1 commit into
8-x-yfrom
trop/8-x-y-bp-fix-fix-compositor-recycling-when-creating-new-browserview-1575567491352

Conversation

@trop

@trop trop Bot commented Dec 5, 2019

Copy link
Copy Markdown
Contributor

Backport of #21372

See that PR for details.

Notes: Fix flicker when switching between BrowserViews after creating new BrowserView

In #20829, we fixed compositor recycling when switching between
BrowserViews, but it turns out that there is one additional case that we
need to handle. When we create a completely new BrowserView instance, it
starts of as visible (even when it hasn't been added to the window),
which means that it will need its own compositor instead of using the
recycled compositor.

To fix this, lets make BrowserViews hidden by default until they're
added to the window. See also #19988. This is a potentially breaking
change given that the initial value of `document.visibilityState` will
now be `hidden`, but given the experimental status of BrowserViews, I
think this is a fine change to make. The old behavior can be restored
with `webPreferences: { show: true }`.

Notes: Fix compositor recycling when creating new BrowserView
@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label Dec 5, 2019
@trop trop Bot added 8-x-y backport This is a backport PR labels Dec 5, 2019
@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label Dec 5, 2019
@zcbenz
zcbenz merged commit e8c8afb into 8-x-y Dec 10, 2019
@release-clerk

release-clerk Bot commented Dec 10, 2019

Copy link
Copy Markdown

Release Notes Persisted

Fix flicker when switching between BrowserViews after creating new BrowserView

@zcbenz
zcbenz deleted the trop/8-x-y-bp-fix-fix-compositor-recycling-when-creating-new-browserview-1575567491352 branch December 10, 2019 01:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

8-x-y backport This is a backport PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants