Skip to content

Commit 58b34f2

Browse files
committed
Avoid double invalidation for OOPIF root target
1 parent e4120a5 commit 58b34f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/agent/src/translator/browser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1517,7 +1517,7 @@ export class BrowserExecutor {
15171517
private invalidateSessionTarget(targetId: string): void {
15181518
const ownedFrames = new Set<string>();
15191519
for (const entry of this.refs.values()) {
1520-
if (entry.sessionTargetId === targetId) ownedFrames.add(entry.frameId);
1520+
if (entry.sessionTargetId === targetId && entry.frameId !== targetId) ownedFrames.add(entry.frameId);
15211521
}
15221522
this.invalidateFrame(targetId);
15231523
for (const frameKey of ownedFrames) this.invalidateFrame(frameKey);

0 commit comments

Comments
 (0)