Page.scheduleNavigation for location changes

This commit is contained in:
Karl Seguin
2025-12-22 12:19:08 +08:00
parent da32440a14
commit d9c53a3def
15 changed files with 187 additions and 92 deletions

View File

@@ -115,8 +115,6 @@ pub fn CDPT(comptime TypeProvider: type) type {
// A bit hacky right now. The main server loop doesn't unblock for
// scheduled task. So we run this directly in order to process any
// timeouts (or http events) which are ready to be processed.
pub fn hasPage() bool {}
pub fn pageWait(self: *Self, ms: u32) Session.WaitResult {
const session = &(self.browser.session orelse return .no_page);
return session.wait(ms);