1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 09:43:23 +00:00

[PM-8395] [POC] Introduce wrapper script to prevent renderer coredumps in desktop linux (#9395)

* Add wrapper script to protect from coredumps and re-enable process reload

* Allow args passthrough and clean up after-pack script
This commit is contained in:
Bernd Schoolmann
2024-07-24 19:17:11 +02:00
committed by GitHub
parent 5a2db79235
commit b07d7ee1c6
4 changed files with 38 additions and 5 deletions

View File

@@ -53,11 +53,9 @@ export class WindowMain {
this.win.setBackgroundColor(await this.getBackgroundColor());
// By default some linux distro collect core dumps on crashes which gets written to disk.
if (!isLinux()) {
const crashEvent = once(this.win.webContents, "render-process-gone");
this.win.webContents.forcefullyCrashRenderer();
await crashEvent;
}
const crashEvent = once(this.win.webContents, "render-process-gone");
this.win.webContents.forcefullyCrashRenderer();
await crashEvent;
this.win.webContents.reloadIgnoringCache();
// FIXME: Verify that this floating promise is intentional. If it is, add an explanatory comment and ensure there is proper error handling.