fix: add filter to setDiscoverTargets for Firefox (#9693)

This commit is contained in:
CanadaHonk 2023-04-06 17:35:12 +01:00 committed by GitHub
parent ef0fb5d872
commit c09764e4c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -166,7 +166,10 @@ export class FirefoxTargetManager
}
async initialize(): Promise<void> {
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;
}