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.
This commit is contained in:
Karl Seguin
2025-03-04 14:11:03 +08:00
committed by Pierre Tachoire
parent adb8779d00
commit 9de84aee2e

View File

@@ -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 {