Merge pull request #9644 from electron/webview-sandbox
Enable sandbox on webview
This commit is contained in:
commit
2cd49f3036
14 changed files with 209 additions and 8 deletions
|
@ -913,6 +913,12 @@ correctly.
|
|||
|
||||
**Note:** This will not affect `process.argv`.
|
||||
|
||||
### `app.enableMixedSandbox()` _Experimental_
|
||||
|
||||
Enables mixed sandbox mode on the app.
|
||||
|
||||
This method can only be called before app is ready.
|
||||
|
||||
### `app.dock.bounce([type])` _macOS_
|
||||
|
||||
* `type` String (optional) - Can be `critical` or `informational`. The default is
|
||||
|
|
|
@ -60,6 +60,8 @@ It is important to note that this option alone won't enable the OS-enforced sand
|
|||
`--enable-sandbox` command-line argument must be passed to electron, which will
|
||||
force `sandbox: true` for all `BrowserWindow` instances.
|
||||
|
||||
To enable OS-enforced sandbox on `BrowserWindow` or `webview` process with `sandbox:true` without causing
|
||||
entire app to be in sandbox, `--enable-mixed-sandbox` command-line argument must be passed to electron.
|
||||
|
||||
```js
|
||||
let win
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue