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`). |
||
---|---|---|
.. | ||
partition | ||
permissions | ||
save_page | ||
service-worker | ||
storage | ||
a.html | ||
audio.html | ||
b.html | ||
base-page.html | ||
basic-auth.html | ||
beforeunload-false.html | ||
c.html | ||
cache-storage.html | ||
close.html | ||
content.html | ||
d.html | ||
did-get-response-details.html | ||
dom-ready.html | ||
e.html | ||
filesystem.html | ||
focus-web-contents.html | ||
fullscreen.html | ||
history-replace.html | ||
history.html | ||
ipc-message.html | ||
key-events.html | ||
media-id-reset.html | ||
native-module.html | ||
onkeyup.html | ||
onmouseup.html | ||
ping-pong.html | ||
ping.html | ||
post.html | ||
process-exit.html | ||
referrer.html | ||
resize.html | ||
set-global.html | ||
shared_worker.html | ||
target-name.html | ||
theme-color.html | ||
useragent.html | ||
visibilitychange.html | ||
webframe-zoom.html | ||
webview-custom-zoom-level.html | ||
webview-devtools.html | ||
webview-did-navigate-in-page-with-hash.html | ||
webview-did-navigate-in-page-with-history.html | ||
webview-did-navigate-in-page.html | ||
webview-guest-resize.html | ||
webview-in-page-navigate.html | ||
webview-move-to-window.html | ||
webview-no-guest-resize.html | ||
webview-no-node-integration-on-window.html | ||
webview-no-script.html | ||
webview-opener-no-node-integration.html | ||
webview-opener-postMessage.html | ||
webview-origin-zoom-level.html | ||
webview-stripped-preload.html | ||
webview-visibilitychange.html | ||
webview-will-navigate.html | ||
webview-zoom-factor.html | ||
will-navigate.html | ||
window-no-javascript.html | ||
window-open-hide.html | ||
window-open-postMessage.html | ||
window-open-size.html | ||
window-open.html | ||
window-opener-location.html | ||
window-opener-no-node-integration.html | ||
window-opener-no-webview-tag.html | ||
window-opener-node.html | ||
window-opener-postMessage.html | ||
window-opener-targetOrigin.html | ||
window-opener-webview.html | ||
window-opener.html | ||
worker.html | ||
zoom-factor.html |