diff --git a/src/cdp/cdp.zig b/src/cdp/cdp.zig index 7853a804..a0d36918 100644 --- a/src/cdp/cdp.zig +++ b/src/cdp/cdp.zig @@ -88,6 +88,7 @@ pub fn do( } pub const State = struct { + contextID: ?[]const u8 = null, frameID: []const u8 = FrameID, url: []const u8 = URLBase, securityOrigin: []const u8 = URLBase, diff --git a/src/cdp/target.zig b/src/cdp/target.zig index 9f6136a0..5d5b4135 100644 --- a/src/cdp/target.zig +++ b/src/cdp/target.zig @@ -178,6 +178,8 @@ fn createBrowserContext( }; const msg = try getMsg(alloc, Params, scanner); + ctx.state.contextID = ContextID; + // output const Resp = struct { browserContextId: []const u8 = ContextID,