electron/spec-main
mlaurencin 53aaeb7a16
fix: prevent destroyed view references from causing crashes (#25411)
Closes #21666.

This PR is fixing crashes caused by referencing and attempting to modify previously destroyed views.
Before, when a view was destroyed and then the contents were referenced for modification, the system would crash as undefined memory was accessed. This fix explicitly makes the pointer to the destroyed view's contents null, so that this will not happen.
2020-09-16 18:10:49 -06:00
..
fixtures fix: prevent destroyed view references from causing crashes (#25411) 2020-09-16 18:10:49 -06:00
.eslintrc spec: initial spike of main-process based tests 2019-03-14 12:50:06 -07:00
.gitignore spec: add tests for the autoUpdater on macOS that actually test if it works (#17442) 2019-03-29 17:32:52 -07:00
ambient.d.ts chore: tsify menu (#24358) 2020-07-06 13:24:54 -07:00
api-app-spec.ts fix: multiple dock icons when calling dock.show/hide (#25269) 2020-09-03 20:46:24 +09:00
api-auto-updater-spec.ts test: add more auto updater tests for squirrel.mac (#24611) 2020-07-20 09:51:33 -07:00
api-autoupdater-darwin-spec.ts test: add more auto updater tests for squirrel.mac (#24611) 2020-07-20 09:51:33 -07:00
api-browser-view-spec.ts fix: prevent crash if BrowserView webContents was destroyed (#25112) 2020-08-25 20:04:13 -07:00
api-browser-window-affinity-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
api-browser-window-spec.ts fix: ensure ready-to-show event is fired (#25448) 2020-09-15 12:48:39 -06:00
api-callbacks-registry-spec.ts refactor: prevent consistent early exception (#24191) 2020-06-22 20:32:45 -07:00
api-content-tracing-spec.ts feat: record v8 cpu samples in the main process (#24819) 2020-08-21 09:25:30 -07:00
api-context-bridge-spec.ts fix: ensure that errors thrown in the context bridge are created in the correct context (#24534) 2020-07-23 14:32:38 -07:00
api-crash-reporter-spec.ts feat: [crashReporter] enable compression by default (#25288) 2020-09-03 12:43:58 -07:00
api-debugger-spec.ts feat: expose sessionId in debugger module (#24170) 2020-07-02 13:04:20 -07:00
api-deprecate-spec.ts chore: remove unused deprecate.fnToProperty() (#24069) 2020-06-15 18:59:04 -07:00
api-desktop-capturer-spec.ts feat: remove getMediaSourceIdForWebContents() (#25414) 2020-09-14 10:38:05 -07:00
api-dialog-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
api-global-shortcut-spec.ts fix: volume key globalShortcut registration (#23782) 2020-05-28 08:56:48 -04:00
api-in-app-purchase-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
api-ipc-main-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
api-ipc-renderer-spec.ts test: reduce flakiness of post-context-release ipc test (#23992) 2020-06-05 16:51:42 -07:00
api-ipc-spec.ts refactor: prevent consistent early exception (#24191) 2020-06-22 20:32:45 -07:00
api-menu-item-spec.ts test: make sure tests fail properly instead of timing out (#24316) 2020-07-01 00:10:36 +02:00
api-menu-spec.ts test: convert more tests to async / await (#24373) 2020-07-01 15:14:38 -04:00
api-native-theme-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
api-net-log-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
api-net-spec.ts build: update to standard 14 (#24479) 2020-07-09 10:18:49 -07:00
api-notification-dbus-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
api-notification-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
api-power-monitor-spec.ts test: use delay() helper (#24321) 2020-06-26 22:59:54 +02:00
api-power-save-blocker-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
api-protocol-spec.ts fix: Close protocol response streams when aborted (#24014) 2020-07-21 09:51:38 +09:00
api-remote-spec.ts test: make sure tests fail properly instead of timing out (#24316) 2020-07-01 00:10:36 +02:00
api-screen-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
api-service-workers-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
api-session-spec.ts build: update to standard 14 (#24479) 2020-07-09 10:18:49 -07:00
api-shell-spec.ts feat: add shell.trashItem() to replace shell.moveItemToTrash() (#25114) 2020-09-02 10:32:33 -07:00
api-subframe-spec.ts chore: tsify web-contents (#24325) 2020-07-06 10:50:03 -07:00
api-system-preferences-spec.ts refactor: ginify SystemPreferences (#24675) 2020-07-28 11:03:30 -07:00
api-touch-bar-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
api-tray-spec.ts feat: allow monospaced font styles to be specified for macOS tray titles (#25059) 2020-08-23 14:39:29 -07:00
api-view-spec.ts refactor: rename TopLevelWindow to BaseWindow (#24305) 2020-06-29 16:06:20 +09:00
api-web-contents-spec.ts ci: fix WOA failing tests (#25018) 2020-08-24 12:58:55 -04:00
api-web-contents-view-spec.ts refactor: rename TopLevelWindow to BaseWindow (#24305) 2020-06-29 16:06:20 +09:00
api-web-frame-spec.ts feat: add worldSafe flag for executeJS results (#24114) 2020-07-23 14:32:20 -07:00
api-web-request-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
asar-spec.ts test: make sure tests fail properly instead of timing out (#24316) 2020-07-01 00:10:36 +02:00
autofill-spec.ts test: add test for datalist autofills (#23110) 2020-04-21 12:28:31 -07:00
chromium-spec.ts fix: disable CORS when webSecurity is disabled (#25463) 2020-09-16 14:55:53 -07:00
crash-spec.ts chore: fix linting (#23473) 2020-05-08 11:30:37 -07:00
events-helpers.ts chore: deprecate remote (#25293) 2020-09-10 09:17:17 -07:00
extensions-spec.ts fix(extensions): define platform info to prevent renderer crash (#25357) 2020-09-15 10:29:32 -06:00
guest-window-manager-spec.ts refactor: improve feature string parsing (#23130) 2020-04-21 16:23:00 -04:00
index.js test: fail tests if the spec runner promise rejects (#24762) 2020-07-28 20:36:35 -07:00
internal-spec.ts refactor: improve feature string parsing (#23130) 2020-04-21 16:23:00 -04:00
modules-spec.ts fix: export libuv symbols (#24659) 2020-08-11 19:17:18 +09:00
node-spec.ts test: make sure tests fail properly instead of timing out (#24316) 2020-07-01 00:10:36 +02:00
package.json fix: export libuv symbols (#24659) 2020-08-11 19:17:18 +09:00
pipe-transport.ts chore: support --remote-debugging-pipe (#23433) 2020-05-07 21:27:55 -07:00
release-notes-spec.ts chore: graceful handling of notes with sub-lists (#25279) 2020-09-03 14:42:48 -05:00
security-warnings-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
spec-helpers.ts build: fix linting issue in spec-main 2020-07-09 11:25:43 -07:00
spellchecker-spec.ts test: use delay() helper (#24321) 2020-06-26 22:59:54 +02:00
types-spec.ts build: enable JS semicolons (#22783) 2020-03-20 13:28:31 -07:00
version-bump-spec.ts build: fix beta version bumper logic for betas beyond 10 (#22810) 2020-03-24 09:04:12 -04:00
video-helpers.js build: update to standard 14 (#24479) 2020-07-09 10:18:49 -07:00
visibility-state-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
webview-spec.ts chore: deprecate remote (#25293) 2020-09-10 09:17:17 -07:00
window-helpers.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
yarn.lock fix: export libuv symbols (#24659) 2020-08-11 19:17:18 +09:00