functional history WebAPI

This commit is contained in:
Muki Kiboigo
2025-09-23 23:37:36 -07:00
parent f03fcc9a31
commit 05e7079178
3 changed files with 64 additions and 34 deletions

View File

@@ -174,7 +174,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 => "scriptInitiated",
.script, .history => "scriptInitiated",
.form => switch (event.opts.method) {
.GET => "formSubmissionGet",
.POST => "formSubmissionPost",