Merge pull request #9644 from electron/webview-sandbox

Enable sandbox on webview
This commit is contained in:
Kevin Sawicki 2017-06-28 10:10:25 -07:00 committed by GitHub
commit 2cd49f3036
14 changed files with 209 additions and 8 deletions

View file

@ -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

View file

@ -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