electron/spec/fixtures/api
Pedro Pontes d5d1fa8290 fix: use appropriate site instance for cross-site nav's (#15821)
* fix: use Chromium's determined new site instance as candidate when navigating.

When navigating to a new address, consider using Chromium's determined site instance
for the new page as it should belong to an existing browsing instance when the
navigation was triggered by window.open().

fixes 8100.

* Revert "fix: use Chromium's determined new site instance as candidate when navigating."

This reverts commit eb95f935654a2c4d4457821297670836c10fdfd5.

* fix: delegate site instance creation back to content when sandboxed.

* fix: ensure site isolation is on

* test: adapt ut for cross-site navigation

* fix: register pending processes during a navigation.

* refactor: dont call loadURL for a window constructed from an existing webContents.

* test: add sandboxed affinity UT's.

* fix: check affinity before deciding if to force a new site instance.

* chore: adapt subsequent patch.

* refactor: constify logically const methods.

* fix: do not reuse site instances when navigation redirects cross-site.

* test: ensure localStorage accessible after x-site redirect.

* test: adapt localStorage acess denied UT for site isolation.

* fix: do not send render-view-deleted for speculative frames.

* chore: amend tests after rebase.

* test: add ut for webContents' render-view-deleted emission

* fix: introduce current-render-view-deleted for current RVH's deletions.

Revert render-view-deleted to being emitted with any RVH's deletion.
current-render-view-deleted is emitted only when the RVH being deleted
is the current one.

* refactor: style and comments fixed.
2018-12-05 17:03:39 +09:00
..
cookie-app fix: backport patch that ensures that cookie store is always created (#15836) 2018-11-29 10:51:13 -08:00
electron-module-app
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: add app.enableSandbox() (#14999) 2018-10-10 15:32:09 +11:00
net-log refactor: create request context from network context (#14656) 2018-10-04 13:08:56 -05: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
singleton chore: update to standard 12 2018-09-14 14:57:01 +10:00
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 fix: small refactoring regressions (#15206) 2018-10-17 12:18:18 -07:00
crash.html fix: small refactoring regressions (#15206) 2018-10-17 12:18:18 -07:00
did-fail-load-iframe.html
frame-subscriber.html
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
localstorage.html
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
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
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
native-window-open-native-addon.html Surface require errors so spec does not hang 2017-07-13 08:36:58 -07: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
offscreen-rendering.html
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
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 fix: use appropriate site instance for cross-site nav's (#15821) 2018-12-05 17:03:39 +09:00
send-sync-message.html
unload.html
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 chore: update to standard 12 2018-09-14 14:57:01 +10:00