PR 44648: Enabling creation on webview with node-integration disabled and raising events
- Enabling creation on webview with node-integration disabled and raising events Conflicts: lib/browser/guest-view-manager.js
This commit is contained in:
parent
b712521056
commit
b4a8ed01f1
6 changed files with 51 additions and 23 deletions
|
@ -218,6 +218,17 @@ When in-page navigation happens, the page URL changes but does not cause
|
|||
navigation outside of the page. Examples of this occurring are when anchor links
|
||||
are clicked or when the DOM `hashchange` event is triggered.
|
||||
|
||||
#### Event: 'will-create-webview'
|
||||
|
||||
Returns:
|
||||
|
||||
* `event` Event
|
||||
* `params` Object
|
||||
|
||||
Emitted when web-view will be created.
|
||||
|
||||
Use this event to remove preload scripts or stop creating webviews.
|
||||
|
||||
#### Event: 'crashed'
|
||||
|
||||
Returns:
|
||||
|
|
|
@ -15,9 +15,6 @@ between your app and embedded content will be asynchronous. This keeps your app
|
|||
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.
|
||||
|
||||
## Example
|
||||
|
||||
To embed a web page in your app, add the `webview` tag to your app's embedder
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue