Files
MagMueller 4573b5222f fix(browser): drop handleFileChooser call and async handler registration
Pyright / code-style CI on PR #4681 flagged two issues, both real and
from this patch:

1. Page.handleFileChooser isn't exposed by cdp_use's PageClient, so the
   attribute access fails type checking. It isn't needed either:
   per CDP spec, Page.setInterceptFileChooserDialog(true) alone causes
   Chromium to suppress the native dialog ("native file chooser dialog
   is not shown"). The page simply sees no file selected, which is the
   desired behavior when no upload is in flight.
2. The Page.fileChooserOpened callback signature is sync
   (FileChooserOpenedEvent, Optional[str]) -> None, not async.

Simplify the patch to the minimum required: just enable interception.
The protection is unchanged — Chromium still blocks the modal dialog
that would wedge the renderer. Drop the custom handler entirely since
the interception flag itself delivers the fix and no downstream logic
needs a synthesized cancel.
2026-04-14 18:19:51 -07:00
..
2025-08-25 21:16:30 -07:00
2025-11-29 13:09:20 -08:00
2025-12-06 23:06:19 -03:00
2025-10-29 21:18:20 -07:00