mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-12-14 23:38:57 +00:00
Merge pull request #1216 from lightpanda-io/cdp-createtarget-navigate
cdp: don't navigate for about:blank
This commit is contained in:
@@ -178,9 +178,11 @@ fn createTarget(cmd: anytype) !void {
|
|||||||
try doAttachtoTarget(cmd, target_id);
|
try doAttachtoTarget(cmd, target_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
try page.navigate(params.url, .{
|
if (!std.mem.eql(u8, "about:blank", params.url)) {
|
||||||
.reason = .address_bar,
|
try page.navigate(params.url, .{
|
||||||
});
|
.reason = .address_bar,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
try cmd.sendResult(.{
|
try cmd.sendResult(.{
|
||||||
.targetId = target_id,
|
.targetId = target_id,
|
||||||
|
|||||||
Reference in New Issue
Block a user