cdp: create a cdp state for target_auto_attach

This commit is contained in:
Pierre Tachoire
2025-03-19 18:37:39 +01:00
parent b43658eb3f
commit fe7f6bee1c
2 changed files with 34 additions and 11 deletions

View File

@@ -54,6 +54,9 @@ pub fn CDPT(comptime TypeProvider: type) type {
// The active browser
browser: Browser,
// when true, any target creation must be attached.
target_auto_attach: bool = false,
target_id_gen: TargetIdGen = .{},
session_id_gen: SessionIdGen = .{},
browser_context_id_gen: BrowserContextIdGen = .{},