mirror of
https://github.com/browseros-ai/BrowserOS.git
synced 2026-05-13 15:46:22 +00:00
* fix: enable agent interaction with elements inside iframes Fetch accessibility trees from all frames via Page.getFrameTree() + per-frame Accessibility.getFullAXTree(frameId), so iframe elements appear in snapshots with valid backendNodeIds. Pages without iframes take the original single-call path with zero overhead. Update snapshot tree builders to walk multiple RootWebArea roots from merged multi-frame trees. Extract same-origin iframe content in the markdown walker; show [iframe: url] placeholder for cross-origin. * fix: namespace AX nodeIds by frameId to prevent cross-frame collisions CDP AXNodeId values are frame-scoped — each frame's accessibility tree starts its own counter from 1. Prefix nodeId and childIds with frameId before merging so the nodeMap in snapshot builders never overwrites nodes from a different frame.