diff --git a/packages/puppeteer-core/src/bidi/BrowserContext.ts b/packages/puppeteer-core/src/bidi/BrowserContext.ts index 9976e4cc6a583..b843751e678b3 100644 --- a/packages/puppeteer-core/src/bidi/BrowserContext.ts +++ b/packages/puppeteer-core/src/bidi/BrowserContext.ts @@ -189,6 +189,8 @@ export class BidiBrowserContext extends BrowserContext { } catch (error) { debugError(error); } + + this.#targets.clear(); } override browser(): BidiBrowser {