From c09764e4c43d7a62096f430b598d63f2b688e860 Mon Sep 17 00:00:00 2001 From: CanadaHonk <19228318+CanadaHonk@users.noreply.github.com> Date: Thu, 6 Apr 2023 17:35:12 +0100 Subject: [PATCH] fix: add filter to setDiscoverTargets for Firefox (#9693) --- packages/puppeteer-core/src/common/FirefoxTargetManager.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/puppeteer-core/src/common/FirefoxTargetManager.ts b/packages/puppeteer-core/src/common/FirefoxTargetManager.ts index 3ba073a0aa7..d5c8582072f 100644 --- a/packages/puppeteer-core/src/common/FirefoxTargetManager.ts +++ b/packages/puppeteer-core/src/common/FirefoxTargetManager.ts @@ -166,7 +166,10 @@ export class FirefoxTargetManager } async initialize(): Promise { - await this.#connection.send('Target.setDiscoverTargets', {discover: true}); + await this.#connection.send('Target.setDiscoverTargets', { + discover: true, + filter: [{}], + }); this.#targetsIdsForInit = new Set(this.#discoveredTargetsByTargetId.keys()); await this.#initializePromise; }