electron/lib/browser
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 Let Chromium manage document.visibilityState and document.hidden 2017-06-06 15:16:01 -07:00
chrome-extension.js Implement chrome.runtime.onMessage response callback 2016-11-15 21:30:40 +11:00
desktop-capturer.js Remove returns from event listeners 2016-05-19 15:28:08 -07:00
guest-view-manager.js Let Chromium manage document.visibilityState and document.hidden 2017-06-06 15:16:01 -07:00
guest-window-manager.js web-preferences -> webPreferences 2017-05-26 10:10:36 -07:00
init.js Use spread syntax instead of function apply 2016-12-01 14:56:00 -08:00
objects-registry.js Co-locate with other private methods 2016-12-02 10:41:42 -08:00
rpc-server.js Fix how rpc-server releases references after page reload 2017-05-16 09:05:52 -03:00