Skip to content

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

tweak title of ignored tabs

Nick Sweeting3b9c6c25c909
diff --git a/browser_use/browser/context.py b/browser_use/browser/context.py
index 8475e37b2..078a19e25 100644
--- a/browser_use/browser/context.py
+++ b/browser_use/browser/context.py
@@ -799,7 +799,8 @@ class BrowserContext:
TabInfo(
page_id=new_page_id,
url=url,
- title=f'iFrame opened as new tab, treat as part of the page: {page.url}',
+ title=f'iFrame opened as new tab, treat as if embedded inside page #{self.state.target_id}: {page.url}',
+ parent_page_id=self.state.target_id,
)
)