diff --git a/src/common/ChromeTargetManager.ts b/src/common/ChromeTargetManager.ts index 3de8022cb02bb..db8cba7c100ef 100644 --- a/src/common/ChromeTargetManager.ts +++ b/src/common/ChromeTargetManager.ts @@ -101,7 +101,12 @@ export class ChromeTargetManager extends EventEmitter implements TargetManager { this.#connection.on('sessiondetached', this.#onSessionDetached); this.#setupAttachmentListeners(this.#connection); - this.#connection.send('Target.setDiscoverTargets', {discover: true}); + // TODO: remove `as any` once the protocol definitions are updated with the + // next Chromium roll. + this.#connection.send('Target.setDiscoverTargets', { + discover: true, + filter: [{type: 'tab', exclude: true}, {}], + } as any); } async initialize(): Promise {