feat: expose missing process APIs in sandboxed renderers (#13505)
This commit is contained in:
parent
f82f89b2a3
commit
fc85d02786
11 changed files with 95 additions and 35 deletions
9
spec/fixtures/module/preload-sandbox.js
vendored
9
spec/fixtures/module/preload-sandbox.js
vendored
|
@ -11,7 +11,14 @@
|
|||
window.test = {
|
||||
env: process.env,
|
||||
execPath: process.execPath,
|
||||
platform: process.platform
|
||||
pid: process.pid,
|
||||
arch: process.arch,
|
||||
platform: process.platform,
|
||||
resourcesPath: process.resourcesPath,
|
||||
sandboxed: process.sandboxed,
|
||||
type: process.type,
|
||||
version: process.version,
|
||||
versions: process.versions
|
||||
}
|
||||
}
|
||||
} else if (location.href !== 'about:blank') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue