feat: enable NodeIntegrationInSubFrames for webview (#17226)
* feat: enable nodeIntegrationInSubFrames for webview * test: add tests * docs: document webview's nodeintegrationinsubframes * lint: fix indent * fix: resolve some merge bloopers
This commit is contained in:
parent
961c9a88a8
commit
43ef561d48
8 changed files with 95 additions and 15 deletions
|
@ -119,6 +119,17 @@ integration and can use node APIs like `require` and `process` to access low
|
|||
level system resources. Node integration is disabled by default in the guest
|
||||
page.
|
||||
|
||||
### `nodeintegrationinsubframes`
|
||||
|
||||
```html
|
||||
<webview src="http://www.google.com/" nodeintegrationinsubframes></webview>
|
||||
```
|
||||
|
||||
Experimental option for enabling NodeJS support in sub-frames such as iframes
|
||||
inside the `webview`. All your preloads will load for every iframe, you can
|
||||
use `process.isMainFrame` to determine if you are in the main frame or not.
|
||||
This option is disabled by default in the guest page.
|
||||
|
||||
### `enableremotemodule`
|
||||
|
||||
```html
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue