Files
hermes-agent/apps
FroRaut e1bc6064f9 fix(desktop): render X and Instagram embeds in isolated iframes
The tweet and Instagram renderers injected the vendors' widgets.js/embed.js
into the app document, which also hosts the preload bridge
(window.hermesDesktop). A compromised or hostile vendor script would run with
full access to that bridge. Render both in a sandboxed cross-origin iframe
instead and size it from the embed page's own height messages, accepting
them only from the vendor origin and the frame's own window.

Hand rebuild of #129637 onto current main: keeps the LazyRenderer autoplay
signature, deletes the now-unused escape-html.ts.

Salvage of #129637.
2026-10-02 03:12:45 +05:30
..