mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-07-30 09:16:07 -04:00
Merge pull request #3065 from lightpanda-io/remove-sendMessageToTarget-assertion
crash: remove Target.sendMessageToTarget session_id assertion
This commit is contained in:
@@ -366,8 +366,8 @@ fn sendMessageToTarget(cmd: *CDP.Command) !void {
|
||||
return error.TargetNotLoaded;
|
||||
}
|
||||
|
||||
lp.assert(bc.session_id != null, "CDP.target.sendMessageToTarget null session_id", .{});
|
||||
if (std.mem.eql(u8, bc.session_id.?, params.sessionId) == false) {
|
||||
const session_id = bc.session_id orelse return error.UnknownSessionId;
|
||||
if (std.mem.eql(u8, session_id, params.sessionId) == false) {
|
||||
// Is this right? Is the params.sessionId meant to be the active
|
||||
// sessionId? What else could it be? We have no other session_id.
|
||||
return error.UnknownSessionId;
|
||||
|
||||
Reference in New Issue
Block a user