Skip to content

fix(desktop): bind IPC authority to the configured renderer - #75

Open
John-Ryan21337 wants to merge 1 commit into
cafeai:devfrom
John-Ryan21337:adoption/browser-ipc-authority-20260911
Open

John-Ryan21337 wants to merge 1 commit into
cafeai:devfrom
John-Ryan21337:adoption/browser-ipc-authority-20260911

Conversation

@John-Ryan21337

Copy link
Copy Markdown
Contributor

Desktop IPC currently trusts a registered renderer's identity without binding it to the renderer URL. This change binds each trusted webContents to its configured loopback origin or production file and prevents main-frame navigation outside that scope. Child-frame navigation remains available, while child-frame IPC stays rejected.

Sender-aware handlers receive the validated event, and opt-in strict decoding rejects unknown payload fields before running capability-bearing handlers. This is a small prerequisite for isolated browser tabs; it does not add the browser runtime or UI.

Validation: full format, lint, and10-workspace typecheck passed; full tests passed10/10; focused IPC/window11/11; forced desktop build3/3 after tests. An initial parallel full test run hit6 unchanged server reactor timeouts; the exact fixture82/82 and serialized full rerun passed without test changes. Independent security review repaired and tested the main/subframe redirect distinction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant