From 3068d7a43e49b65f9827d4e9c1acbe02f998cb24 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Thu, 20 Apr 2017 14:02:41 -0500 Subject: [PATCH 1/2] Make note about sync webview calls in docs --- docs/api/webview-tag.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/api/webview-tag.md b/docs/api/webview-tag.md index 9c09c8ef730e..d89cc5f353ca 100644 --- a/docs/api/webview-tag.md +++ b/docs/api/webview-tag.md @@ -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, however, that 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. From 7177ea5e9a87f0b42ed8570a34c11749727604d9 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Fri, 21 Apr 2017 13:39:51 -0700 Subject: [PATCH 2/2] Bold note for emphasis --- docs/api/webview-tag.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/webview-tag.md b/docs/api/webview-tag.md index d89cc5f353ca..1da5679c18ad 100644 --- a/docs/api/webview-tag.md +++ b/docs/api/webview-tag.md @@ -12,7 +12,7 @@ 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. Note, however, that most methods called on the +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