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,
|
this,
|
||||||
undefined
|
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 (
|
if (
|
||||||
(!this.#targetFilterCallback ||
|
(!this.#targetFilterCallback ||
|
||||||
this.#targetFilterCallback(targetForFilter)) &&
|
this.#targetFilterCallback(targetForFilter)) &&
|
||||||
targetInfo.type !== 'browser'
|
!skipTarget
|
||||||
) {
|
) {
|
||||||
this.#targetsIdsForInit.add(targetId);
|
this.#targetsIdsForInit.add(targetId);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user