Skip to content

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

dont steal about:blank thats potentially used by another agent, it invalidates their objects

Nick Sweeting3f6de11643f1
diff --git a/browser_use/controller/service.py b/browser_use/controller/service.py
index 764564f8d..f918399a1 100644
--- a/browser_use/controller/service.py
+++ b/browser_use/controller/service.py
@@ -86,7 +86,7 @@ class Controller(Generic[Context]):
search_url = f'https://www.google.com/search?q={params.query}&udm=14'
page = await browser_session.get_current_page()
- if page.url in ('about:blank', 'https://www.google.com'):
+ if page.url.strip('/') == 'https://www.google.com':
await page.goto(search_url)
await page.wait_for_load_state()
else: