mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
webview: api to get webcontents and associated host webcontents
This commit is contained in:
@@ -842,6 +842,10 @@ win.webContents.on('did-finish-load', function() {
|
||||
|
||||
Returns the [session](session.md) object used by this webContents.
|
||||
|
||||
### `webContents.hostWebContents`
|
||||
|
||||
Returns the `WebContents` that might own this `WebContents`.
|
||||
|
||||
### `webContents.devToolsWebContents`
|
||||
|
||||
Get the `WebContents` of DevTools for this `WebContents`.
|
||||
|
||||
@@ -438,6 +438,10 @@ Sends an input `event` to the page.
|
||||
See [webContents.sendInputEvent](web-contents.md##webcontentssendinputeventevent)
|
||||
for detailed description of `event` object.
|
||||
|
||||
### `<webview>.getWebContents()`
|
||||
|
||||
Returns the [WebContents](web-contents.md) associated with this `webview`.
|
||||
|
||||
## DOM events
|
||||
|
||||
The following DOM events are available to the `webview` tag:
|
||||
|
||||
Reference in New Issue
Block a user