fix(observation): validate document consistency during capture

This commit is contained in:
Ljy-0827
2026-09-09 13:20:23 +08:00
committed by GitHub
parent 64bbbbf4f8
commit 42a00fb093
8 changed files with 135 additions and 0 deletions
@@ -8,6 +8,7 @@ export interface CdpFrame {
parentFrameId?: string;
ownerBackendNodeId?: number;
url?: string;
loaderId?: string;
target: CdpTarget;
}
@@ -21,6 +22,7 @@ export interface CdpFrameTreeNode {
id: string;
parentId?: string;
url?: string;
loaderId?: string;
};
childFrames?: CdpFrameTreeNode[];
}
@@ -48,6 +50,7 @@ function mergeFrame(
frameId: node.frame.id,
...(parentFrameId ? { parentFrameId } : {}),
...(url ? { url } : {}),
...(node.frame.loaderId ? { loaderId: node.frame.loaderId } : {}),
target,
});
}