7d2226e05e
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`). |
||
---|---|---|
.. | ||
fixtures | ||
static | ||
api-app-spec.js | ||
api-auto-updater-spec.js | ||
api-browser-view-spec.js | ||
api-browser-window-spec.js | ||
api-clipboard-spec.js | ||
api-crash-reporter-spec.js | ||
api-debugger-spec.js | ||
api-deprecations-spec.js | ||
api-desktop-capturer-spec.js | ||
api-dialog-spec.js | ||
api-global-shortcut-spec.js | ||
api-ipc-spec.js | ||
api-menu-spec.js | ||
api-native-image-spec.js | ||
api-net-spec.js | ||
api-power-save-blocker-spec.js | ||
api-process-spec.js | ||
api-protocol-spec.js | ||
api-screen-spec.js | ||
api-session-spec.js | ||
api-shell-spec.js | ||
api-system-preferences-spec.js | ||
api-touch-bar-spec.js | ||
api-web-contents-spec.js | ||
api-web-frame-spec.js | ||
api-web-request-spec.js | ||
asar-spec.js | ||
chromium-spec.js | ||
modules-spec.js | ||
node-spec.js | ||
package.json | ||
webview-spec.js | ||
window-helpers.js |