Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

re-enable scrollbars in screenshots

Nick Sweeting4391eeba4d49
diff --git a/browser_use/browser/profile.py b/browser_use/browser/profile.py
index 45e01c009..864f77049 100644
--- a/browser_use/browser/profile.py
+++ b/browser_use/browser/profile.py
@@ -122,8 +122,8 @@ CHROME_DEFAULT_ARGS = [
# we don't need to include them twice in our own config, but it's harmless
'--disable-field-trial-config', # https://source.chromium.org/chromium/chromium/src/+/main:testing/variations/README.md
'--disable-background-networking',
- '--disable-background-timer-throttling',
- '--disable-backgrounding-occluded-windows',
+ '--disable-background-timer-throttling', # agents might be working on background pages if the human switches to another tab
+ '--disable-backgrounding-occluded-windows', # same deal, agents are often working on backgrounded browser windows
'--disable-back-forward-cache', # Avoids surprises like main request not being intercepted during page.goBack().
'--disable-breakpad',
'--disable-client-side-phishing-detection',
@@ -131,12 +131,12 @@ CHROME_DEFAULT_ARGS = [
'--disable-component-update', # Avoids unneeded network activity after startup.
'--no-default-browser-check',
# '--disable-default-apps',
- '--disable-dev-shm-usage',
+ '--disable-dev-shm-usage', # crucial for docker support, harmless in non-docker environments
# '--disable-extensions',
# '--disable-features=' + disabledFeatures(assistantMode).join(','),
'--allow-pre-commit-input', # let page JS run a little early before GPU rendering finishes
'--disable-hang-monitor',
- '--disable-ipc-flooding-protection',
+ '--disable-ipc-flooding-protection', # important to be able to make lots of CDP calls in a tight loop
'--disable-popup-blocking',
'--disable-prompt-on-repost',
'--disable-renderer-backgrounding',
@@ -161,7 +161,7 @@ CHROME_DEFAULT_ARGS = [
'--allow-pre-commit-input',
'--disable-blink-features=AutomationControlled',
'--install-autogenerated-theme=0,0,0',
- '--hide-scrollbars',
+ # '--hide-scrollbars', # leave them visible! the agent uses them to know when it needs to scroll to see more options
'--log-level=2',
# '--enable-logging=stderr',
'--disable-focus-on-load',