Skip to content

Commit 3afd3ff

Browse files
Update browser_use/browser/profile.py
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
1 parent 661bb46 commit 3afd3ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

browser_use/browser/profile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ class BrowserProfile(BrowserConnectArgs, BrowserLaunchPersistentContextArgs, Bro
594594
default=100,
595595
description='Maximum number of iframe documents to process to prevent crashes.',
596596
)
597-
max_iframe_depth: int = Field(
597+
max_iframe_depth: int = Field(ge=0,
598598
default=5,
599599
description='Maximum depth for cross-origin iframe recursion (default: 5 levels deep).',
600600
)

0 commit comments

Comments
 (0)