electron/spec/fixtures/api
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
..
electron-module-app Test that calling regular module succeeds 2016-05-23 15:14:55 -07:00
exit-closes-all-windows-app Add failing spec for app.exit with >2 windows 2017-04-11 09:09:17 -07:00
quit-app spec: Add test case for app.relaunch 2016-06-03 12:12:20 +09:00
relaunch Remove standard linter warnings 2016-06-29 09:46:16 -07:00
allocate-memory.html Add test to verify memory is released after sandboxed popup is closed 2017-05-01 11:30:07 -03:00
beforeunload-false-prevent3.html Fix #8911 2017-05-03 12:47:00 -05:00
beforeunload-false.html Only prevent unload the first time it is attempted 2016-08-03 16:23:39 -07:00
blank.html spec: node-integration should work in web-preferences 2015-09-10 15:57:16 +08:00
close-beforeunload-empty-string.html Only prevent unload the first time it is attempted 2016-08-03 16:23:39 -07:00
close-beforeunload-false.html Only prevent unload the first time it is attempted 2016-08-03 16:23:39 -07:00
close-beforeunload-undefined.html Adjust to the new behaviors of beforeunload handler 2016-05-23 14:27:39 +09:00
close.html
crash-restart.html Restart crash service in each spec 2017-04-19 16:37:24 -07:00
crash.html Restart crash service in each spec 2017-04-19 16:37:24 -07:00
did-fail-load-iframe.html Add isMainFrame as last argument to WebContents did-fail-load event. 2016-04-04 19:26:06 -07:00
frame-subscriber.html damaged -> dirty rename, fixed misc issues, changed signature, updated docs and added tests 2016-06-25 18:23:40 +02:00
isolated-preload.js Set isolated world security origin 2017-03-02 08:49:18 -08:00
isolated.html Let Chromium manage document.visibilityState and document.hidden 2017-06-06 15:16:01 -07:00
loaded-from-dataurl.js Issue #8735:Support base URL option to loadURL for data URLs 2017-02-28 16:49:03 -08:00
localstorage.html Use require('electron') in Electron's code 2015-11-12 20:29:30 +08:00
native-window-open-blank.html Add spec for native window.open from iframe 2017-05-26 10:10:36 -07:00
native-window-open-child.html Add test for opeing HTML file 2017-04-04 19:05:13 +09:00
native-window-open-cross-origin.html Add cross-origin frame webview spec 2017-05-26 10:10:36 -07:00
native-window-open-file.html Fix JS style in test HTMLs 2017-04-30 19:43:21 +09:00
native-window-open-iframe.html Add spec for native window.open from iframe 2017-05-26 10:10:36 -07:00
native-window-open-isolated-preload.js Add test for nativeWindowOpen + contextIsolation 2017-04-30 19:33:40 +09:00
native-window-open-isolated.html Fix JS style in test HTMLs 2017-04-30 19:43:21 +09:00
native-window-open-native-addon.html Fix JS style in test HTMLs 2017-04-30 19:43:21 +09:00
native-window-open-no-allowpopups.html Add failing spec for native window.open returning null without allowpopups 2017-05-26 10:10:36 -07:00
offscreen-rendering.html adds tests for osr 2016-07-31 17:10:53 +02:00
preload.html Use require('electron') in Electron's code 2015-11-12 20:29:30 +08:00
remote-event-handler.html Assert remote event names 2017-01-25 12:36:55 -08:00
render-view-deleted.html Add spec for render-view-deleted issue 2016-12-02 10:42:09 -08:00
sandbox.html Add test for #9387 2017-05-16 09:07:41 -03:00
send-sync-message.html Use require('electron') in Electron's code 2015-11-12 20:29:30 +08:00
unload.html