Tweak webviewTag option description

This commit is contained in:
Kevin Sawicki 2017-05-19 10:22:28 -07:00
parent 74b7afbec7
commit 6a3f2e90db

View file

@ -310,12 +310,12 @@ It creates a new `BrowserWindow` with native properties as set by the `options`.
* `nativeWindowOpen` Boolean (optional) - Whether to use native `window.open()`. Defaults to `false`. * `nativeWindowOpen` Boolean (optional) - Whether to use native `window.open()`. Defaults to `false`.
* `webviewTag` Boolean (optional) - Whether to enable the [`<webview>` tag](webview-tag.md). * `webviewTag` Boolean (optional) - Whether to enable the [`<webview>` tag](webview-tag.md).
Defaults to the value of the `nodeIntegration` option. **Note:** The Defaults to the value of the `nodeIntegration` option. **Note:** The
preload script to the `<webview>` will have node integration enabled `preload` script configured for the `<webview>` will have node integration
when it executed so you should ensure remote content is not able to create enabled when it is executed so you should ensure remote/untrusted content
a `<webview>` tag with a possibly malicious `preload` script. You can use is not able to create a `<webview>` tag with a possibly malicious `preload`
the `will-attach-webview` event on [web-contents](web-contents.md) to script. You can use the `will-attach-webview` event on [webContents](web-contents.md)
strip away the `preload` script and to validate or alter the `<webview>`'s to strip away the `preload` script and to validate or alter the
initial settings. `<webview>`'s initial settings.
When setting minimum or maximum window size with `minWidth`/`maxWidth`/ When setting minimum or maximum window size with `minWidth`/`maxWidth`/
`minHeight`/`maxHeight`, it only constrains the users. It won't prevent you from `minHeight`/`maxHeight`, it only constrains the users. It won't prevent you from