From aacf11b90090cfb3d82a755b8f3d14d42df5d775 Mon Sep 17 00:00:00 2001 From: John Kleinschmidt Date: Mon, 25 Nov 2024 13:09:26 -0500 Subject: [PATCH] actually destroy webcontents --- spec/lib/window-helpers.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/spec/lib/window-helpers.ts b/spec/lib/window-helpers.ts index df0c350668..42d3beb39e 100644 --- a/spec/lib/window-helpers.ts +++ b/spec/lib/window-helpers.ts @@ -60,14 +60,11 @@ export async function closeAllWindows (assertNotWindows = false) { export async function cleanupWebContents () { let webContentsDestroyed = 0; const existingWCS = webContents.getAllWebContents(); - webContentsDestroyed = existingWCS.length; - /* for (const contents of existingWCS) { const isDestroyed = once(contents, 'destroyed'); contents.destroy(); await isDestroyed; webContentsDestroyed++; } - */ return webContentsDestroyed; }