mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-30 07:31:47 +00:00
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:
@@ -329,7 +329,7 @@ fn navigate(
|
|||||||
|
|
||||||
// Send Runtime.executionContextsCleared event
|
// Send Runtime.executionContextsCleared event
|
||||||
// TODO: noop event, we have no env context at this point, is it necesarry?
|
// 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
|
// Launch navigate, the page must have been created by a
|
||||||
// target.createTarget.
|
// target.createTarget.
|
||||||
|
|||||||
Reference in New Issue
Block a user