electron/spec/fixtures/api
Alexandre Lacheze b4276835d8 fix: lost window.opener after cross-origin navigation (#18173)
* Get a site instance related to current one instead of creation a new one

Using `GetRelatedSiteInstance` will keep the relation (same browsing instance) between the current and the new site instance.

* Some relies on preloads in opened window

The fact that, now, we always have an opener for opened windows diables note integration in opened windows, except if `nodeIntegrationInSubFrames` is enabled.

* Add a test on window.opener after cross-orgin navigation

* Make sure to unregisterProtocol in tests

* Introduc and use a NetworkSandbox for tests

* Modify tests about zoom persistence to properly simulate cross-origin navigation

* Revert "Modify tests about zoom persistence to properly simulate cross-origin navigation"

This reverts commit 0a7537f2eb7f183ddec16637e8a2e92a0d600321.
2019-06-03 13:23:15 -07:00
..
command-line feat: add app.commandLine.hasSwitch() / app.commandLine.getSwitchValue() (#16282) 2019-01-07 07:48:27 -08:00
cookie-app feat: promisify cookies api (#16464) 2019-01-25 12:11:35 -06:00
default-menu feat: use default-app behavior in packaged apps (#16310) 2019-01-15 21:35:53 +01:00
electron-main-module refactor: allow embedder overriding of internal FS calls (#17906) (#18183) 2019-05-07 06:44:32 -07:00
electron-module-app Test that calling regular module succeeds 2016-05-23 15:14:55 -07:00
exit-closes-all-windows-app chore: update to standard 12 2018-09-14 14:57:01 +10:00
ipc-main-listeners refactor: use separate ipc-renderer-internal / ipc-main-internal APIs for Electron internals (#13940) 2018-10-07 00:48:00 +13:00
locale-check chore: update to standard 12 2018-09-14 14:57:01 +10:00
mixed-sandbox-app feat: enable mixed-sandbox mode by default (#15894) 2019-01-22 10:44:28 -08:00
quit-app refactor: replace var with const / let (#14866) 2018-09-29 09:17:00 +10:00
relaunch refactor: add prefer-const to .eslintrc + fix errors (#14880) 2018-10-02 11:56:31 +10:00
service-worker feat: promisify webContents.hasServiceWorker() (#16535) 2019-01-26 10:23:16 -08:00
singleton test: add test for second-instance event parameter (#16798) 2019-03-12 11:56:28 -04:00
site-instance-overrides feat: Add option to conditionally disable site instance patches (#18396) 2019-05-31 15:47:18 -07:00
window-all-closed feat: use default-app behavior in packaged apps (#16310) 2019-01-15 21:35:53 +01: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 💄 Avoid duplicate temporary file names. 2013-08-29 18:03:14 +08:00
crash-restart.html chore: make crash-reporter specs not use URL module (#16840) 2019-02-08 13:22:07 -08:00
crash.html chore: make crash-reporter specs not use URL module (#16840) 2019-02-08 13:22:07 -08: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
execute-javascript.html feat: make zoomLevel/zoomFactor sync (#16410) 2019-01-20 23:40:27 -08: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
gpu-info.js test: slightly rewrite getGPUInfo() tests (#14863) 2018-10-01 18:34:52 -07:00
isolated-fetch-preload.js chore: update to standard 12 2018-09-14 14:57:01 +10:00
isolated-preload.js chore: update to standard 12 2018-09-14 14:57:01 +10:00
isolated.html chore: refactor context isolation spec (#14394) 2018-09-01 08:51:29 +12:00
leak-exit-browserview.js fix: destroy WebContents synchronously on shutdown (#15541) 2018-11-08 07:57:28 -08:00
leak-exit-webcontents.js fix: destroy WebContents synchronously on shutdown (#15541) 2018-11-08 07:57:28 -08:00
leak-exit-webcontentsview.js fix: destroy WebContents synchronously on shutdown (#15541) 2018-11-08 07:57:28 -08: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 test: move several session specs to the main runner (#18433) 2019-05-28 14:12:59 -07:00
native-window-open-argv.html fix: child window with nativeWindowOpen should disable node integration (#15213) 2018-10-25 15:31:07 +09: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 Use an existing host name so that it resolves quickly and tests don't time out. 2017-11-24 10:58:53 +09: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 chore: update to standard 12 2018-09-14 14:57:01 +10: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 feat: Upgrade to Chromium 71.0.3578.98 (#15966) 2019-01-11 17:00:43 -08: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
new-window-preload.js chore: update to standard 12 2018-09-14 14:57:01 +10:00
new-window.html Add spec for configuring web preferences from sandboxed new-window event 2017-07-17 11:55:15 -07:00
no-leak.html fix: ensure the sandboxed preloads globals do not leak (#17712) 2019-04-16 10:57:02 -07:00
offscreen-rendering.html adds tests for osr 2016-07-31 17:10:53 +02:00
preload.html spec: add test for syncronous access to blink APIs (#14637) 2018-09-25 10:40:15 +12:00
preloads.html Add a SessionPreferences to manage session related data 2017-12-05 15:59:15 +09:00
remote-event-handler.html Assert remote event names 2017-01-25 12:36:55 -08:00
render-view-deleted.html fix: use render client id to track deleted render process hosts (#14520) 2018-09-11 11:18:10 -07:00
sandbox.html test: remove non-applicable processMemoryInfo specs (#17679) 2019-04-05 07:53:25 -07:00
send-sync-message.html Use require('electron') in Electron's code 2015-11-12 20:29:30 +08:00
unload.html 💄 Avoid duplicate temporary file names. 2013-08-29 18:03:14 +08:00
window-open-location-change.html Add spec for reloading opened window cross-origin 2017-07-17 11:55:15 -07:00
window-open-location-final.html Add spec for reloading opened window cross-origin 2017-07-17 11:55:15 -07:00
window-open-location-open.html Add spec for reloading opened window cross-origin 2017-07-17 11:55:15 -07:00
window-open-preload.js fix: lost window.opener after cross-origin navigation (#18173) 2019-06-03 13:23:15 -07:00