fix(chromium): race between oopif attach and context clear (#33729)
This commit is contained in:
parent
7e09aa07de
commit
4696dd8682
|
@ -731,6 +731,10 @@ class FrameSession {
|
||||||
if (!frame)
|
if (!frame)
|
||||||
return; // Subtree may be already gone due to renderer/browser race.
|
return; // Subtree may be already gone due to renderer/browser race.
|
||||||
this._page._frameManager.removeChildFramesRecursively(frame);
|
this._page._frameManager.removeChildFramesRecursively(frame);
|
||||||
|
for (const [contextId, context] of this._contextIdToContext) {
|
||||||
|
if (context.frame === frame)
|
||||||
|
this._onExecutionContextDestroyed(contextId);
|
||||||
|
}
|
||||||
const frameSession = new FrameSession(this._crPage, session, targetId, this);
|
const frameSession = new FrameSession(this._crPage, session, targetId, this);
|
||||||
this._crPage._sessions.set(targetId, frameSession);
|
this._crPage._sessions.set(targetId, frameSession);
|
||||||
frameSession._initialize(false).catch(e => e);
|
frameSession._initialize(false).catch(e => e);
|
||||||
|
|
Loading…
Reference in New Issue