feat: add process.contextIsolation property (#28030)
This commit is contained in:
parent
485fa5bea9
commit
fc7f2042ec
9 changed files with 40 additions and 12 deletions
|
@ -30,6 +30,7 @@ In sandboxed renderers the `process` object contains only a subset of the APIs:
|
|||
* `arch`
|
||||
* `platform`
|
||||
* `sandboxed`
|
||||
* `contextIsolation`
|
||||
* `type`
|
||||
* `version`
|
||||
* `versions`
|
||||
|
@ -94,6 +95,11 @@ A `String` representing the path to the resources directory.
|
|||
A `Boolean`. When the renderer process is sandboxed, this property is `true`,
|
||||
otherwise it is `undefined`.
|
||||
|
||||
### `process.contextIsolation` _Readonly_
|
||||
|
||||
A `Boolean` that indicates whether the current renderer context has `contextIsolation` enabled.
|
||||
It is `undefined` in the main process.
|
||||
|
||||
### `process.throwDeprecation`
|
||||
|
||||
A `Boolean` that controls whether or not deprecation warnings will be thrown as
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue