Repository navigation
Conversation
sun04222
added a commit
to sun04222/browser-use
that referenced
this pull request
Oct 23, 2026
… downloads test taken from PR head)
|
👋 This PR has been automatically marked as stale because it hasn't had activity for 45 days. To keep this PR open:
This will be automatically closed in 14 days if no further activity occurs. Thanks for contributing to browser-use! 🤖 |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
accept_downloads=Falsecurrently has no effect on the CDP download setup: the downloads watchdog always configuresBrowser.setDownloadBehaviorwithallow, even when a local browser explicitly disables downloads.This change configures
denywhen download acceptance is disabled and keeps the existing download path and events for the enabled case. PDF/network auto-downloads also respectaccept_downloads, so that path cannot bypass the setting.Refs #5981 and the diagnosis by depper-IA in #5981 (comment).
Validation:
allowinstead ofdeny). It drives the actual watchdog with a mocked CDP client; this is not a reproduction on the reported website../bin/lint.sh --stagedpassed (Ruff check/format, Pyright, and the configured pre-commit hooks). Local setup used the project virtualenv on PATH, a writable pre-commit cache, and Python 3.11 for the configured hooks.The full CI suite and a live-browser download were not run locally.
Summary by cubic
Fixes
accept_downloads=Falsebeing ignored by CDP browsers. Previously, the downloads watchdog always configuredBrowser.setDownloadBehaviorwithallow, so downloads were permitted even when explicitly disabled. Now, when download acceptance is disabled, the watchdog sets behavior todeny, and PDF/network auto-downloads also respect the setting. Regression tests cover both enabled and disabled cases.Written for commit 0efd673. Summary will update on new commits.