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
6
spec/fixtures/module/preload-sandbox.js
vendored
6
spec/fixtures/module/preload-sandbox.js
vendored
|
@ -8,7 +8,11 @@
|
|||
window.test = 'preload'
|
||||
window.process = process
|
||||
if (process.env.sandboxmain) {
|
||||
window.test = process.env.sandboxmain
|
||||
window.test = {
|
||||
env: process.env,
|
||||
execPath: process.execPath,
|
||||
platform: process.platform
|
||||
}
|
||||
}
|
||||
} else if (location.href !== 'about:blank') {
|
||||
addEventListener('DOMContentLoaded', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue