electron/spec/fixtures/pages
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
..
partition create partitionId with encodedURIcomponent 2015-09-03 20:49:29 +05:30
permissions Add spec for midi without sysex permission 2017-01-19 09:05:59 +02:00
save_page spec: Remove annoying outputs from savePage test 2016-01-15 16:36:35 +08:00
service-worker eradicate all per-file eslint globals 2016-03-30 17:00:34 -07:00
storage add spec 2016-09-22 00:15:25 +05:30
a.html
audio.html Add media play events to webview 2015-12-19 22:37:51 -05:00
b.html protocol: fix registerStandardSchemes api 2016-05-08 01:36:34 +05:30
base-page.html add tests for webview devtools-* events 2016-01-01 04:49:29 -08:00
basic-auth.html Use require('electron') in Electron's code 2015-11-12 20:29:30 +08:00
beforeunload-false.html Use require('electron') in Electron's code 2015-11-12 20:29:30 +08:00
c.html spec: Check if window.global is set 2015-07-14 09:15:03 -07:00
cache-storage.html finish implementation of {secure:true} opt on protocol.registerStandardScehesm, and add working test 2016-12-12 12:49:57 -08:00
close.html Add a test to verify the webview close event 2015-07-08 14:34:44 -07:00
content.html add api to webview 2015-12-21 17:13:23 +05:30
d.html
did-get-response-details.html Add resourceType arg to webContents did-get-response-details event. 2016-04-08 11:19:36 -07:00
dom-ready.html spec: Make dom-ready spec stronger 2015-07-24 15:48:13 +08:00
e.html
filesystem.html add spec and docs 2016-08-24 06:53:14 +05:30
focus-web-contents.html Update blur parent window spec 2017-02-15 08:28:55 -08:00
fullscreen.html add spec and fix docs 2015-07-31 12:30:17 +05:30
history-replace.html Test that replacement history entries don't break forward navigation. 2016-09-16 17:08:54 -07:00
history.html Use require('electron') in Electron's code 2015-11-12 20:29:30 +08:00
ipc-message.html Use require('electron') in Electron's code 2015-11-12 20:29:30 +08:00
key-events.html Add char/keypress event tests 2016-10-10 09:35:44 -07:00
media-id-reset.html add spec 2016-12-04 00:22:57 +05:30
native-module.html spec: Native modules should work after navigation in webview 2015-04-27 15:11:59 +08:00
onkeyup.html Assert key and code in keyup input event spec 2016-10-10 09:35:44 -07:00
onmouseup.html Use require('electron') in Electron's code 2015-11-12 20:29:30 +08:00
ping-pong.html spec: ipcRenderer.sendTo sends message to WebContents 2016-05-28 20:50:30 +09:00
ping.html spec: webview should work without script tag in page 2016-04-12 15:10:26 +09:00
post.html spec: Node integration should work after POST 2015-09-01 11:51:28 +08:00
process-exit.html Merge branch 'webcontent_invalid_loadurl_patch' of https://github.com/deepak1556/atom-shell into deepak1556-webcontent_invalid_loadurl_patch 2016-02-15 21:14:54 +08:00
referrer.html
resize.html Allow webview guests to be resized manually 2016-11-15 11:00:09 -08:00
set-global.html
shared_worker.html test: Node integration in web workers 2017-03-20 12:52:46 -07:00
target-name.html
theme-color.html Add tests for did-change-theme-color event 2015-12-22 23:05:03 -05:00
useragent.html Add a test for the user agent 2015-05-19 14:27:15 -07:00
visibilitychange.html Add failing spec for webview visiblity changes 2016-05-25 09:12:52 -07:00
webframe-zoom.html add temporary zoom api spec 2017-02-18 01:34:32 +05:30
webview-custom-zoom-level.html add zoom specs based on standard protocols 2017-02-18 01:41:39 +05:30
webview-devtools.html WebInspector has been split up 2017-02-06 10:34:29 -08:00
webview-did-navigate-in-page-with-hash.html add tests to insure window.location.hash changes & window.history.replaceState cause 'did-navigate-in-page' to fire 2016-01-01 18:51:47 -08:00
webview-did-navigate-in-page-with-history.html add tests to insure window.location.hash changes & window.history.replaceState cause 'did-navigate-in-page' to fire 2016-01-01 18:51:47 -08:00
webview-did-navigate-in-page.html add tests for will-navigate, did-navigate-to-different-page, did-navigate-in-page events in webview 2016-01-01 18:13:07 -08:00
webview-guest-resize.html Allow webview guests to be resized manually 2016-11-15 11:00:09 -08:00
webview-in-page-navigate.html add zoom specs based on standard protocols 2017-02-18 01:41:39 +05:30
webview-move-to-window.html Add a guestinstance attribute to webviews reflecting their current guest 2016-09-09 10:32:05 -07:00
webview-no-guest-resize.html Allow webview guests to be resized manually 2016-11-15 11:00:09 -08:00
webview-no-node-integration-on-window.html Add failing spec 2016-04-21 11:49:42 -07:00
webview-no-script.html spec: webview should work without script tag in page 2016-04-12 15:10:26 +09:00
webview-opener-no-node-integration.html Remove stray log 2016-04-01 16:52:28 -07:00
webview-opener-postMessage.html Add spec for window.open from <webview> 2016-06-09 12:02:01 -07:00
webview-origin-zoom-level.html add spec 2017-03-08 19:16:55 +05:30
webview-stripped-preload.html Add explicit spec for removing preload from webview 2017-05-17 13:47:00 -07:00
webview-visibilitychange.html Remove logging in parent page 2016-05-25 09:12:52 -07:00
webview-will-navigate.html add tests for will-navigate, did-navigate-to-different-page, did-navigate-in-page events in webview 2016-01-01 18:13:07 -08:00
webview-zoom-factor.html Add test for webview zoomFactor inheritance 2016-05-19 14:46:52 -07:00
will-navigate.html spec: Make the will-navigate test run faster 2015-09-18 18:57:48 +08:00
window-no-javascript.html Add failing spec for inheriting Javascript web preference 2017-04-25 12:57:53 -07:00
window-open-hide.html spec: Add test for allowpopups attribute 2015-09-22 21:18:04 +08:00
window-open-postMessage.html Remove use of now private guestId 2017-01-16 12:38:16 -08:00
window-open-size.html Read window size properly in window.open test 2015-12-02 11:50:44 -08:00
window-open.html Add failing spec for cycle in options 2017-01-06 09:58:40 -08:00
window-opener-location.html spec: Should check origin before accessing window.opener 2016-11-16 07:50:30 -08:00
window-opener-no-node-integration.html Remove semicolons 2016-04-01 16:52:55 -07:00
window-opener-no-webview-tag.html Add failing spec for webviewTag inheritance 2017-05-17 13:27:28 -07:00
window-opener-node.html Add clearer assertion of process being undefined 2016-04-01 16:40:33 -07:00
window-opener-postMessage.html spec: window.opener.postMessage should set source and origin 2015-09-01 12:15:00 +08:00
window-opener-targetOrigin.html Add more non-matching target origins 2017-05-01 08:45:38 -07:00
window-opener-webview.html Add failing spec for webviewTag inheritance 2017-05-17 13:27:28 -07:00
window-opener.html Use require('electron') in Electron's code 2015-11-12 20:29:30 +08:00
worker.html test: Node integration in web workers 2017-03-20 12:52:46 -07:00
zoom-factor.html add zoom specs based on standard protocols 2017-02-18 01:41:39 +05:30