electron/lib/renderer
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
..
api Fix how rpc-server releases references after page reload 2017-05-16 09:05:52 -03:00
extensions Add support remove / clear for chrome.storage 2016-11-12 02:16:51 +08:00
web-view Forward webview visibility change events from browser process 2017-02-28 08:23:00 -08:00
chrome-api.js Remove semicolon 2016-11-17 14:56:44 +11:00
content-scripts-injector.js Current handle sender.tab for background pages 2016-05-29 10:46:48 +09:00
init.js Default webviewTag to false 2017-05-17 14:01:45 -07:00
inspector.js WebInspector has been split up 2017-02-06 10:34:29 -08:00
override.js Use native window.open implementation 2017-03-19 17:41:20 +09:00
window-setup.js Let Chromium manage document.visibilityState and document.hidden 2017-06-06 15:16:01 -07:00