Skip to content

Implement a node.js-free, sandboxed, context isolated renderer  #92164

@egamma

Description

@egamma

We want to explore a model where the workbench in Electron does not access node.js APIs. In that model the Electron renderer process runs in sandboxed mode, much like any browser tab would do. Privileged code has to either move into a backend process and be accessible via IPC communication or into a preload script that exposes certain methods to the page.

July

Backlog

  • Tests:
    • common/browser: run in BrowserWindow with sandbox: true
    • node.js/electron-browser: run in ELECTRON_RUN_AS_NODE

Architecture

image

Metadata

Metadata

Labels

plan-itemVS Code - planned item for upcomingsandboxRunning VSCode in a node-free environment

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions