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

This commit is contained in:
Milan Burda 2018-07-30 03:13:42 +02:00 committed by Samuel Attard
parent aacbd76baa
commit db38c8b620
6 changed files with 35 additions and 8 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'