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`). |
||
---|---|---|
.. | ||
electron-module-app | ||
exit-closes-all-windows-app | ||
quit-app | ||
relaunch | ||
allocate-memory.html | ||
beforeunload-false-prevent3.html | ||
beforeunload-false.html | ||
blank.html | ||
close-beforeunload-empty-string.html | ||
close-beforeunload-false.html | ||
close-beforeunload-undefined.html | ||
close.html | ||
crash-restart.html | ||
crash.html | ||
did-fail-load-iframe.html | ||
frame-subscriber.html | ||
isolated-preload.js | ||
isolated.html | ||
loaded-from-dataurl.js | ||
localstorage.html | ||
native-window-open-blank.html | ||
native-window-open-child.html | ||
native-window-open-cross-origin.html | ||
native-window-open-file.html | ||
native-window-open-iframe.html | ||
native-window-open-isolated-preload.js | ||
native-window-open-isolated.html | ||
native-window-open-native-addon.html | ||
native-window-open-no-allowpopups.html | ||
offscreen-rendering.html | ||
preload.html | ||
remote-event-handler.html | ||
render-view-deleted.html | ||
sandbox.html | ||
send-sync-message.html | ||
unload.html |