mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
fix: prevent erroneous new main frame (#10549)
This commit is contained in:
parent
43556e986e
commit
cb46413d87
@ -69,7 +69,7 @@ export class FrameTree<Frame extends BaseFrame> {
|
|||||||
this.#childIds.set(frame._parentId, new Set());
|
this.#childIds.set(frame._parentId, new Set());
|
||||||
}
|
}
|
||||||
this.#childIds.get(frame._parentId)!.add(frame._id);
|
this.#childIds.get(frame._parentId)!.add(frame._id);
|
||||||
} else {
|
} else if (!this.#mainFrame) {
|
||||||
this.#mainFrame = frame;
|
this.#mainFrame = frame;
|
||||||
}
|
}
|
||||||
this.#waitRequests.get(frame._id)?.forEach(request => {
|
this.#waitRequests.get(frame._id)?.forEach(request => {
|
||||||
|
Loading…
Reference in New Issue
Block a user