mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
fix: do not wait for extension page targets on connect (#12574)
This commit is contained in:
parent
0057f3fe0a
commit
5f2ee98c5b
@ -122,10 +122,15 @@ export class ChromeTargetManager
|
||||
this,
|
||||
undefined
|
||||
);
|
||||
// Targets that will not be auto-attached. Therefore, we should
|
||||
// not add them to #targetsIdsForInit.
|
||||
const skipTarget =
|
||||
targetInfo.type === 'browser' ||
|
||||
targetInfo.url.startsWith('chrome-extension://');
|
||||
if (
|
||||
(!this.#targetFilterCallback ||
|
||||
this.#targetFilterCallback(targetForFilter)) &&
|
||||
targetInfo.type !== 'browser'
|
||||
!skipTarget
|
||||
) {
|
||||
this.#targetsIdsForInit.add(targetId);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user