From 2601c90bc0ec54f1e6234d05112c99c458d4ae5e Mon Sep 17 00:00:00 2001 From: Uttkarsh <38376852+uttkarsh-26@users.noreply.github.com> Date: Mon, 12 Oct 2026 00:09:18 +0530 Subject: fix: browser_download no longer hijacks the user's own downloads (#33) Browser.setDownloadBehavior was sent without a browserContextId, so the override applied to the user's default context and outlived the session. browser_download now takes restore:true, tracks the override this process set, and a clean session shutdown restores Chrome's default with a bounded call that is skipped when the browser is already gone. Co-Authored-By: Claude Fable 5.1 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index a1fd9b2..b99535b 100644 --- a/README.md +++ b/README.md @@ -173,7 +173,7 @@ tabs or navigating the tab to another origin. | Tool | Purpose | |---|---| | `browser_upload_file` | Set files on a file input, with a DataTransfer fallback for stubborn pages. | -| `browser_download` | Set the download directory and suppress the save-as prompt. | +| `browser_download` | Set the download directory and suppress the save-as prompt, or restore the default. Applies to the user's own downloads until restored. | | `browser_print_to_pdf` | Print the page to PDF via `Page.printToPDF`. | | `browser_viewport_resize` | Override viewport size and device pixel ratio for responsive checks. | -- cgit v1.2.3