Skip to content

Commit c6c63a5

Browse files
karlseguinkrichprollsch
authored andcommitted
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.
1 parent f5155ba commit c6c63a5

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/cdp/runtime.zig

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,6 @@ fn sendInspector(cmd: anytype, action: anytype) !void {
5757
}
5858

5959
bc.session.callInspector(cmd.input.json);
60-
61-
if (cmd.input.id != null) {
62-
return cmd.sendResult(null, .{});
63-
}
6460
}
6561

6662
pub const ExecutionContextCreated = struct {

0 commit comments

Comments
 (0)