Merge pull request #9239 from pfrazee/patch-1

Make note about sync webview calls in docs
This commit is contained in:
Kevin Sawicki 2017-04-21 13:40:17 -07:00 committed by GitHub
commit d1691e0a37

View file

@ -12,7 +12,8 @@ rendered.
Unlike an `iframe`, the `webview` runs in a separate process than your
app. It doesn't have the same permissions as your web page and all interactions
between your app and embedded content will be asynchronous. This keeps your app
safe from the embedded content.
safe from the embedded content. **Note:** Most methods called on the
webview from the host page require a syncronous call to the main process.
For security purposes, `webview` can only be used in `BrowserWindow`s that have
`nodeIntegration` enabled.