fix(browser): ignore duplicate frame navigations and read block-form source map directives (#546)

This commit is contained in:
morluto
2026-10-05 17:25:16 +08:00
committed by GitHub
parent 84e4361c09
commit 828395d510
6 changed files with 149 additions and 4 deletions
+6
View File
@@ -20,4 +20,10 @@ export interface CdpCaptureEventsState {
originViolation: boolean;
navigationDuringCapture: boolean;
mainFrameId: string | undefined;
/**
* Identity of the document last observed in the main frame. `frameNavigated`
* re-fires for the same document, so this is what distinguishes a real
* document change from a duplicate event.
*/
committedDocument: string | undefined;
}