electron/lib
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
..
browser Let Chromium manage document.visibilityState and document.hidden 2017-06-06 15:16:01 -07:00
common Restart crash service in each spec 2017-04-19 16:37:24 -07:00
isolated_renderer Pass nativeWindowOpen flag to isolated init.js 2017-04-30 19:35:41 +09:00
renderer Let Chromium manage document.visibilityState and document.hidden 2017-06-06 15:16:01 -07:00
sandboxed_renderer Expose more atom_bindings.cc functions to sandbox 2017-05-01 09:12:39 -03:00
worker Correctly initialize Node environment in worker 2017-03-20 12:52:45 -07:00