perf(observation): validate document identity against snapshot roots

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