agent-zero/plugins/_browser/helpers
Alessandro c6b3f56d72 Enforce same-origin isolation for browser DOM helper RPC
Cross-origin related windows could read page content and invoke DOM actions
through the helper's public postMessage channel.

Reject foreign and opaque origins, use exact target origins, and bind each
pending response to its child window and operation. Preserve inherited
origins for about:blank/srcdoc frames and trusted direct automation access.

Bump the helper to v2 and require a page reload when legacy listeners are
present. Existing host browsers must restart and reconnect before restored
tabs reload so old initialization scripts are discarded.

Add real-Chromium regressions for parent/frame/opener attacks, opaque
origins, forged responses, same-origin actions, and helper upgrades.

Validation: 250 browser/connector tests passed in both Conda a0 and Docker's
framework runtime; JavaScript syntax and diff checks passed. Restarted the
live runtime and verified HTTP health, browser navigation, and the viewer.
2026-11-01 07:41:16 +01:00
..
__init__.py browser: replace browser-use agent with native browser 2026-04-24 15:43:52 +02:00
config.py Simplify Browser quick settings and expand browser configuration 2026-10-08 01:14:08 +02:00
connector_runtime.py Bound browser evaluate with recoverable JavaScript cancellation 2026-09-14 16:38:01 +02:00
extension_manager.py Fix Chrome Web Store extension installs 2026-07-21 16:28:26 +02:00
interactive_view.py Speed up Browser and Desktop startup 2026-09-08 12:18:50 +02:00
playwright.py Simplify Browser setup concurrency 2026-08-16 17:05:03 +02:00
runtime.py Enforce same-origin isolation for browser DOM helper RPC 2026-11-01 07:41:16 +01:00
selector.py Improve Browser Docker runtime recovery 2026-05-18 02:00:31 +02:00
url.py Centralize Browser helper contracts 2026-05-08 16:39:04 +02:00