Electron Renderer Trust Boundary: contextIsolation and Preload IPC
Isolate Electron renderer processes with contextIsolation, nodeIntegration, and a typed preload API; validate all IPC in the main process.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Isolate Electron renderer processes with contextIsolation, nodeIntegration, and a typed preload API; validate all IPC in the main process.
An architecture note on Electron's main/renderer split: the smallest preload bridge, validating IPC payloads in the main process, navigation lockdown, and the checks that prove the boundary holds.
Goal Confirm whether an API exposed through contextBridge.exposeInMainWorld remains available on window after a same-process renderer navigation that does not reload the page, with contextIsolation enabled. Constraints Electron runs preload scripts in an isolated world, and same-process navigations may not re-execute the preload script. Behavior can differ b