Fix process.execPath returning parent process path instead of the helper in sandboxed renderer (#13959)

This commit is contained in:
Milan Burda 2018-08-09 16:58:44 +02:00 committed by Charles Kerr
parent 3d89185396
commit 98033e4f45
6 changed files with 34 additions and 7 deletions

View file

@ -8,6 +8,19 @@ Electron's `process` object is extended from the
[Node.js `process` object](https://nodejs.org/api/process.html).
It adds the following events, properties, and methods:
## Sandbox
In sandboxed renderers the `process` object contains only a subset of the APIs:
- `crash()`
- `hang()`
- `getHeapStatistics()`
- `getProcessMemoryInfo()`
- `getSystemMemoryInfo()`
- `argv`
- `execPath`
- `env`
- `platform`
## Events
### Event: 'loaded'