6f81b23728
When we attach to a frame, we send a call to get the page frame tree from CDP. Based on the tree data we look up the parent frame if parentId is provided. The problem is that the call to get the page frame tree could take arbitrary time and the calls for the parent and child frames might happen at the same time. So the situation where the frame tree for the child frame is resolved before the parent frame is known is fairly common. This PR addresses the issue by awaiting for the parent frame id before attempting to register a child frame. |
||
---|---|---|
.. | ||
common | ||
generated | ||
node | ||
templates | ||
compat.d.ts | ||
constants.ts | ||
environment.ts | ||
initializePuppeteer.ts | ||
puppeteer-core.ts | ||
puppeteer.ts | ||
revisions.ts | ||
tsconfig.cjs.json | ||
tsconfig.esm.json | ||
types.ts |