fix(observation): validate document consistency during capture

This commit is contained in:
Ljy-0827 authored and drakezhang committed 2026-09-09 15:58:40 +08:00
1 parent eefbe03258
commit df5ed1a495
8 files changed
+135

No files matched your search

+9
View File
@@ -1,3 +1,4 @@
import type { CdpTarget } from "@/browser-driver/frame-graph";
import { isOverlayHostNode } from "@/lib/overlay-bridge";
import { createCaptureCheckpoint } from "./capture-abort";
import type { CapturedNode } from "./capture-types";
@@ -92,3 +93,11 @@ export async function buildDocumentIndex<T extends DecodedNode>(
}
return { nodes, excludedBackendNodeIds };
}
export interface DocumentIdentity {
attachmentId: string;
target: CdpTarget;
frameId: string;
loaderId: string;
documentElementBackendNodeId: number;
}