Files
Birunthan Mohanathas 7d2226e05e Let Chromium manage document.visibilityState and document.hidden
Chromium already includes the necessary plumbing to manage the
visibility properties and `visibilitychange` event so this gets rid of
most of our custom logic for `BrowserWindow` and `BrowserView`.

Note that `webview` remains unchanged and is still affected by the issues
listed below.

User facing changes:

- The `document` visibility properties and `visibilitychange` event are
  now also updated/fired in response to occlusion changes on macOS. In
  other words, `document.visibilityState` will now be `hidden` on macOS
  if the window is occluded by another window.

- Previously, `visibilitychange` was also fired by *both* Electron and
  Chromium in some cases (e.g. when hiding the window). Now it is only
  fired by Chromium so you no longer get duplicate events.

- The visiblity state of `BrowserWindow`s created with `{ show: false }`
  is now initially `visible` until the window is shown and hidden.

- The visibility state of `BrowserWindow`s with `backgroundThrottling`
  disabled is now permanently `visible`.

This should also fix #6860 (but not for `webview`).
2017-06-06 15:16:01 -07:00
..
2016-09-22 00:15:25 +05:30
2015-12-19 22:37:51 -05:00
2015-07-14 09:15:03 -07:00
2015-12-21 17:13:23 +05:30
2014-10-25 23:23:49 +08:00
2014-11-06 15:23:42 +08:00
2016-08-24 06:53:14 +05:30
2015-07-31 12:30:17 +05:30
2016-10-10 09:35:44 -07:00
2016-12-04 00:22:57 +05:30
2015-05-19 14:27:15 -07:00
2017-02-18 01:34:32 +05:30
2017-03-08 19:16:55 +05:30