Merge pull request #1138 from lightpanda-io/navigation

add `Navigation` WebAPI
This commit is contained in:
Pierre Tachoire
2025-10-24 09:30:09 +02:00
committed by GitHub
25 changed files with 937 additions and 172 deletions

View File

@@ -197,7 +197,7 @@ pub fn pageNavigate(arena: Allocator, bc: anytype, event: *const Notification.Pa
var cdp = bc.cdp;
const reason_: ?[]const u8 = switch (event.opts.reason) {
.anchor => "anchorClick",
.script, .history => "scriptInitiated",
.script, .history, .navigation => "scriptInitiated",
.form => switch (event.opts.method) {
.GET => "formSubmissionGet",
.POST => "formSubmissionPost",