electron/shell
Birunthan Mohanathas 5223d1d774 fix: Fix compositor recycling when creating new BrowserView (#21372)
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
2019-12-05 09:37:42 -08:00
..
app fix: record cpu_profiler data for main process (#21187) 2019-11-21 18:05:41 -08:00
browser fix: Fix compositor recycling when creating new BrowserView (#21372) 2019-12-05 09:37:42 -08:00
common chore: remove native_mate (Part 14) (#21365) 2019-12-05 18:46:34 +09:00
renderer fix: deprecate setLayoutZoomLevelLimits (#21296) 2019-12-02 13:27:03 -08:00
utility refactor: run clang-tidy (#20231) 2019-09-16 18:12:00 -04:00