electron/spec-main/fixtures/crash-cases
Darshan Sen 03e68e2efe
fix: fix a crash in safeStorage on Linux (#33913)
On Linux, `isEncryptionAvailable()` was crashing instead of returning a
boolean before the 'ready' event was emitted by the app. The reason of
the crash is that [`CreateKeyStorage()`](https://source.chromium.org/chromium/chromium/src/+/main:components/os_crypt/os_crypt_linux.cc;l=74;drc=35be6215ec8f09e50176f36753c68f26c63d1885;bpv=1;bpt=0)
expects the config to be set but the function responsible for setting the
config, [`SetConfig()`](https://source.chromium.org/chromium/chromium/src/+/main:components/os_crypt/os_crypt_linux.cc;l=237;drc=35be6215ec8f09e50176f36753c68f26c63d1885;bpv=1;bpt=0),
is called only after the app is ready inside [`PostCreateMainMessageLoop()`](https://github.com/electron/electron/blob/main/shell/browser/electron_browser_main_parts.cc#L499).
So this changes `IsEncryptionAvailable()` to return `false` when the app
is not ready on Linux and uses that instead of the raw API in other
places like `EncryptString()` and `DecryptString()`.

Fixes: https://github.com/electron/electron/issues/32206
Signed-off-by: Darshan Sen <raisinten@gmail.com>
2022-05-09 09:38:53 -04:00
..
api-browser-destroy fix: prevent destroyed view references from causing crashes (#25411) 2020-09-16 18:10:49 -06:00
early-in-memory-session-create ci: fix WOA failing tests (#25018) 2020-08-24 12:58:55 -04:00
fs-promises-renderer-crash fix: crash when destroying node env with pending promises (#33280) 2022-03-16 18:54:45 +01:00
in-memory-session-double-free fix: browser contexts live forever (#24964) 2020-08-17 13:21:53 -07:00
js-execute-iframe fix: illegal access errors with nodeIntegrationInSubFrames (#29093) 2021-05-14 13:36:15 +02:00
native-window-open-exit fix: process.exit crash in nativeWindowOpen (#30218) 2021-07-22 15:38:11 +02:00
quit-on-crashed-event chore: bump chromium to 102.0.4989.0 (main) (#33557) 2022-04-12 13:19:14 +02:00
safe-storage fix: fix a crash in safeStorage on Linux (#33913) 2022-05-09 09:38:53 -04:00
setimmediate-renderer-crash fix: renderer crash on setImmediate (#26365) 2020-11-10 09:17:58 -08:00
setimmediate-window-open-crash feat: remove nativeWindowOpen option (#29405) 2022-01-06 09:28:03 -08:00
transparent-window-get-background-color fix: handle a nil backgroundColor in win.getBackgroundColor() (#28120) 2021-03-14 17:26:47 -07:00
webcontents-create-leak-exit test: disable some tests under ASan which might receive SIGKILL because of OOM (#28156) 2021-03-16 17:02:47 -04:00
webcontentsview-create-leak-exit test: disable some tests under ASan which might receive SIGKILL because of OOM (#28156) 2021-03-16 17:02:47 -04:00
webview-attach-destroyed fix: check for destroyed webcontents in converter (#25431) 2020-09-16 12:25:49 -07:00
webview-contents-error-on-creation fix: prevent crash on web-contents creation when error is thrown (#28971) 2021-05-11 13:57:11 -07:00