electron/spec-main/fixtures
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 test: scope internal test fixtures under @electron-ci (#33822) 2022-05-02 13:09:23 -04:00
apps test: make test apps' name prefixed with electron-test- (#33511) 2022-03-30 13:17:34 -04:00
auto-update test: make test apps' name prefixed with electron-test- (#33511) 2022-03-30 13:17:34 -04:00
chromium chore: bump chromium to 6b9fa6b352d824d052222e1abe541 (master) (#25558) 2020-10-15 18:30:41 -07:00
crash-cases fix: fix a crash in safeStorage on Linux (#33913) 2022-05-09 09:38:53 -04:00
devtools-extensions test: deflake <webview> tag loads devtools extensions on WOA (#31702) 2021-11-04 14:00:28 -04:00
extensions chore: bump chromium to 95.0.4612.5 (main) (#30503) 2021-08-23 20:52:17 -04:00
module test: scope internal test fixtures under @electron-ci (#33822) 2022-05-02 13:09:23 -04:00
native-addon test: scope internal test fixtures under @electron-ci (#33822) 2022-05-02 13:09:23 -04:00
pages test: BrowserWindow backgroundColor and transparency (#31017) 2022-03-01 14:14:11 -08:00
release-notes/cache chore: graceful handling of notes with sub-lists (#25279) 2020-09-03 14:42:48 -05:00
snapshots feat: remove nativeWindowOpen option (#29405) 2022-01-06 09:28:03 -08:00
sub-frames feat: add 'dom-ready' event to WebFrameMain (#29290) 2021-09-01 15:21:15 -07:00
version-bumper docs: update supported versions to match new release cadence (#30121) 2021-07-14 15:38:28 -07:00
webview/fullscreen fix: webview should maximize on requestFullscreen (#29952) 2021-07-01 20:56:29 -04:00
blank.html
blank.png ci: fix WOA failing tests (#25018) 2020-08-24 12:58:55 -04:00
cat.pdf
dogs-running.txt fix: improper wrapping of fs.promises.readFile (#29528) 2021-06-07 21:19:39 +02:00