Fix process.execPath returning parent process path instead of the helper in sandboxed renderer (#13839)
This commit is contained in:
parent
aacbd76baa
commit
db38c8b620
6 changed files with 35 additions and 8 deletions
|
@ -1600,9 +1600,11 @@ describe('BrowserWindow module', () => {
|
|||
})
|
||||
})
|
||||
|
||||
it('validate process.env access in sandbox renderer', (done) => {
|
||||
it('validates process APIs access in sandboxed renderer', (done) => {
|
||||
ipcMain.once('answer', function (event, test) {
|
||||
assert.equal(test, 'foo')
|
||||
assert.equal(test.platform, remote.process.platform)
|
||||
assert.deepEqual(test.env, remote.process.env)
|
||||
assert.equal(test.execPath, remote.process.helperExecPath)
|
||||
done()
|
||||
})
|
||||
remote.process.env.sandboxmain = 'foo'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue