Commit Graph

1467 Commits

Author SHA1 Message Date
Saurav Panda 7e409e269f Update browser_use/browser/cloud.py
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-09-17 09:56:46 -07:00
Saurav Panda 85a2386c91 feat: added cloud_browser feature 2025-09-16 22:27:45 -07:00
Gregor Žunič 101d4d1c36 more switches to snake_case 2025-09-16 20:15:27 -07:00
Saurav Panda 126d800df4 remove sensitive data from agent history and logging 2025-09-16 14:41:24 -07:00
Gregor Žunič 5e05224ffb switched to browsersession input 2025-09-15 21:25:32 -07:00
Gregor Žunič e0f65ca892 v2 2025-09-15 21:11:46 -07:00
Matic Zavadlal 48c96b6318 fixes 2025-09-14 18:53:04 -07:00
Matic Zavadlal 96ef89b1f8 Update security_watchdog.py 2025-09-14 18:44:11 -07:00
Matic Zavadlal c807f4d36e add prohibited domains 2025-09-14 18:31:57 -07:00
Saurav Panda 22ce300702 make allowed domains check case insensitive 2025-09-12 18:39:20 -07:00
Saurav Panda 5fca615a66 Merge branch 'main' into saurav/fix-screenshot-issue-with-auth 2025-09-12 16:15:38 -07:00
Saurav Panda ea0c79fe72 feat: automatically add www for allowed domains 2025-09-12 16:06:57 -07:00
Saurav Panda af07b8f4cb fix: added new line handling for cdp 2025-09-12 14:42:49 -07:00
Magnus Müller 9ae7144e5a type-safe-element-element 2025-09-11 10:42:30 -07:00
Magnus Müller 036401c429 Merge branch 'main' into main 2025-09-08 13:23:23 -07:00
Cyrus 5def647b0b ruff format 2025-09-08 11:21:32 -06:00
Cyrus f82f42319c DownloadsWatchdog watches BrowserStateRequestEvent to download PDFs 2025-09-08 11:06:14 -06:00
avocardio c7dcb668bc fix: more lint errors 2025-09-08 09:47:07 -07:00
avocardio 9ce8416b50 fix: Use Path.write_bytes() to avoid SYNC230 lint error 2025-09-08 09:37:53 -07:00
avocardio 3336b9d55f feat: Add enhanced screenshot API 2025-09-08 09:14:32 -07:00
Magnus Müller 744dd53c61 Refactor max_iframe_depth field formatting in BrowserProfile class for improved readability. 2025-09-08 08:48:19 -07:00
Magnus Müller 3afd3ff7b2 Update browser_use/browser/profile.py
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-09-08 08:45:54 -07:00
Magnus Müller 700910126a make iframe depth variable 2025-09-08 08:17:15 -07:00
Gregor Žunič d2d56ee656 renamed comment 2025-09-07 22:27:38 -07:00
Gregor Žunič f4f18eacc3 Merge branch 'main' into feature/paint-order-filtering 2025-09-07 22:02:49 -07:00
Gregor Žunič 05408613b9 Merge branch 'main' into feature/paint-order-filtering 2025-09-07 21:07:19 -07:00
Magnus Müller f9426a239e enable-cross_origin_iframes 2025-09-07 20:57:20 -07:00
Gregor Žunič c2eede8e20 paint order filtering 2025-09-07 20:56:48 -07:00
Magnus Müller 77eeed5cf0 Update default cross-origin iframe setting to False for enhanced security and performance 2025-09-07 20:39:11 -07:00
Magnus Müller a0dd0c99a7 Update default cross-origin iframe setting to True for improved support 2025-09-07 20:04:36 -07:00
Magnus Müller 3dcd3c4b02 Update default cross-origin iframe setting to False and adjust tree serialization depth handling 2025-09-07 19:35:21 -07:00
Magnus Müller f164d94306 Merge branch 'main' into iframe-limits 2025-09-07 19:30:02 -07:00
Magnus Müller 03de8840c9 Refactor exception handling in DownloadsWatchdog for improved robustness
This commit updates the DownloadsWatchdog class to specify exception types in the error handling logic, replacing broad exception catches with more precise ones (AssertionError, KeyError, AttributeError). Additionally, it adds a warning log when no downloads path is configured, ensuring better error visibility and handling during download operations.
2025-09-06 16:05:36 -07:00
Magnus Müller a694501294 Enhance DownloadsWatchdog to expand and resolve download paths
This commit updates the DownloadsWatchdog class to ensure that the downloads directory path is properly expanded and resolved to an absolute path. The changes include:

- Expanding the downloads path using `expanduser()` and `resolve()` methods to handle user home directories correctly.
- Updating the download behavior settings to use the expanded path.
- Ensuring that the downloads directory is created with the resolved path.

Additionally, the example feature for downloading files has been modified to use a temporary downloads path for testing purposes.
2025-09-06 15:53:16 -07:00
Magnus Müller a2264ab947 Merge remote-tracking branch 'origin/main' into fix-downloads-dedup-clean 2025-09-06 15:37:29 -07:00
Magnus Müller 84db72b555 Merge commit 'ad68c577c27cafb22270b811fbe9a0b9f4fcd521' into fix-disable-security-bug 2025-09-06 15:19:59 -07:00
Magnus Müller 12c47d77ff Merge branch 'main' into enable-storagestatewatchdog-if-userdatadir-provided 2025-09-06 13:18:53 -07:00
Magnus Müller 4964d92776 Merge branch 'main' into fix/storage-watchdog-stop-monitoring 2025-09-06 13:13:12 -07:00
Magnus Müller 2b1ee8715e enable StorageStateWatchdog if user_data_dir provided 2025-09-06 13:11:32 -07:00
Magnus Müller e7ade83f4f Merge commit 'd58d2872c5ef9367e606dd155331bde3456de5ed' into feat/cdp-add-origins-storage-state 2025-09-06 13:02:25 -07:00
Magnus Müller 634a95b63a Merge commit 'd58d2872c5ef9367e606dd155331bde3456de5ed' into iframe-limits 2025-09-06 12:42:09 -07:00
Magnus Müller 2cdfe21ab6 hotfix numpy missing 2025-09-06 12:41:17 -07:00
Magnus Müller 595a95fa59 Update cross-origin iframe support description for clarity in BrowserProfile class 2025-09-06 12:37:20 -07:00
Magnus Müller 66fc319938 Merge commit 'af5b4400cd31644d06590ce5bcd0c19ac4ef35dd' into iframe-limits 2025-09-06 12:36:26 -07:00
Magnus Müller be6fd1a92e Add video recording configuration options to BrowserSession
- Introduced `record_video_framerate` and `record_video_size` parameters to the BrowserSession class for enhanced video recording capabilities.
- Updated example in video_recording.py to reflect changes, switching from BrowserSession to Browser for video recording setup.

This update allows users to customize video recording settings more effectively.
2025-09-06 12:29:19 -07:00
Enzo Biondo 1da79ca982 Merge branch 'main' into feat/video-recording 2025-09-06 14:43:33 -03:00
Magnus Müller 6ceb1a8e4d Merge branch 'main' into event_timeouts 2025-09-06 10:23:29 -07:00
Magnus Müller 73ce26ab3b Refactor timeout handling in events to use a dedicated function for improved error handling and clarity. This change replaces direct environment variable parsing with a new _get_timeout function across multiple event classes, ensuring consistent timeout management. 2025-09-06 10:23:14 -07:00
Magnus Müller 472f7c83b0 Refine viewport handling logic in browser profile initialization
- Improved clarity and organization of viewport behavior for both headless and headful modes.
- Ensured user preferences for viewport settings are respected and not overridden.
- Added assertions to validate configuration states, enhancing robustness.

This update aims to streamline the user experience when configuring browser profiles.
2025-09-06 05:26:38 -07:00
Magnus Müller 598b206276 Enhance viewport handling in headful mode
- Added logic to respect user-provided viewport settings when initializing the browser profile.
- Ensured that if a viewport is explicitly set by the user, it will not be overridden by default behaviors in headful mode.
- Improved clarity in the viewport configuration process for both headless and headful modes.

This change aims to provide a more intuitive experience for users configuring their browser profiles.
2025-09-06 05:21:38 -07:00