refactor(observation): integrate capture orchestration and document consistency

This commit is contained in:
Ljy-0827
2026-09-09 15:58:56 +08:00
committed by drakezhang
parent df5ed1a495
commit 4e3365450a
14 changed files with 2323 additions and 1605 deletions
@@ -47,6 +47,7 @@ export async function readDocumentIdentity(
documentElementBackendNodeId: backendNodeId,
};
} catch (error) {
throwCaptureAborted(signal);
if (isCaptureAbort(error)) throw error;
return undefined;
} finally {
@@ -54,6 +55,7 @@ export async function readDocumentIdentity(
await sendToCdpTarget(cdp, frame.target, "Runtime.releaseObject", { objectId }).catch(
() => {},
);
throwCaptureAborted(signal);
}
}