Skip to content

Commit c2827a0

Browse files
committed
cdp: add browser.Close but ignore it
1 parent 263dab0 commit c2827a0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/cdp/domains/browser.zig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ pub fn processMessage(cmd: anytype) !void {
4444
grantPermissions,
4545
getWindowForTarget,
4646
setDownloadBehavior,
47+
close,
4748
}, cmd.input.action) orelse return error.UnknownMethod;
4849

4950
switch (action) {
@@ -54,6 +55,7 @@ pub fn processMessage(cmd: anytype) !void {
5455
.grantPermissions => return grantPermissions(cmd),
5556
.getWindowForTarget => return getWindowForTarget(cmd),
5657
.setDownloadBehavior => return setDownloadBehavior(cmd),
58+
.close => return cmd.sendResult(null, .{}),
5759
}
5860
}
5961

0 commit comments

Comments
 (0)