Files
agent-zero/plugins/_browser
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
..