Add initial documentation for sandbox
option.
This commit is contained in:
parent
46aed5ff6f
commit
437f1192d9
2 changed files with 191 additions and 0 deletions
|
@ -225,6 +225,11 @@ It creates a new `BrowserWindow` with native properties as set by the `options`.
|
|||
When node integration is turned off, the preload script can reintroduce
|
||||
Node global symbols back to the global scope. See example
|
||||
[here](process.md#event-loaded).
|
||||
* `sandbox` Boolean (optional) - If set, this will sandbox the renderer
|
||||
associated with the window, making it compatible with chromium sandbox and
|
||||
disabling the node.js engine. This is not the same as the
|
||||
`nodeIntegration` option and the APIs available to the preload script are
|
||||
more limited. Read more about the option [here](sandbox-option.md).
|
||||
* `session` [Session](session.md#class-session) (optional) - Sets the session used by the
|
||||
page. Instead of passing the Session object directly, you can also choose to
|
||||
use the `partition` option instead, which accepts a partition string. When
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue