From 9de84aee2eacbcb48dc382237581b7077def87a7 Mon Sep 17 00:00:00 2001 From: Karl Seguin Date: Tue, 4 Mar 2025 14:11:03 +0800 Subject: [PATCH] Don't send CDP result when message is forward to inspector. Rely on inspector to send the result, otherwise we'll send 2 responses to the same message (one ourselves and one from the inspector), which Playwright does not like. --- src/cdp/runtime.zig | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/cdp/runtime.zig b/src/cdp/runtime.zig index d34920ea..c054521e 100644 --- a/src/cdp/runtime.zig +++ b/src/cdp/runtime.zig @@ -57,10 +57,6 @@ fn sendInspector(cmd: anytype, action: anytype) !void { } bc.session.callInspector(cmd.input.json); - - if (cmd.input.id != null) { - return cmd.sendResult(null, .{}); - } } pub const ExecutionContextCreated = struct {