Enable blocking auth request interception

This commit is contained in:
Karl Seguin
2025-12-24 12:19:11 +08:00
parent 67875036c5
commit df4e5d859f
3 changed files with 44 additions and 33 deletions

View File

@@ -408,7 +408,7 @@ pub fn BrowserContext(comptime CDP_T: type) type {
// abort all intercepted requests before closing the sesion/page
// since some of these might callback into the page/scriptmanager
for (self.intercept_state.pendingTransfers()) |transfer| {
transfer.abort();
transfer.abort(error.ClientDisconnect);
}
// If the session has a page, we need to clear it first. The page