cdp: send empty param instead of void

Sending void parameters generated unmarshal errors with chromedp client.
Empty struct is required.
This commit is contained in:
Pierre Tachoire
2025-01-28 15:46:13 +01:00
parent 3fb16774b7
commit fc59a0f6ab

View File

@@ -329,7 +329,7 @@ fn navigate(
// Send Runtime.executionContextsCleared event
// TODO: noop event, we have no env context at this point, is it necesarry?
try sendEvent(alloc, ctx, "Runtime.executionContextsCleared", void, {}, input.sessionId);
try sendEvent(alloc, ctx, "Runtime.executionContextsCleared", struct {}, .{}, input.sessionId);
// Launch navigate, the page must have been created by a
// target.createTarget.