fix: focus the webview as a temp workaround
This commit is contained in:
parent
3e9f9429d1
commit
084292f3ab
1 changed files with 5 additions and 0 deletions
|
@ -956,6 +956,11 @@ describe('<webview> tag', function () {
|
||||||
webview.addEventListener('did-finish-load', listener2)
|
webview.addEventListener('did-finish-load', listener2)
|
||||||
webview.src = `file://${fixtures}/pages/content.html`
|
webview.src = `file://${fixtures}/pages/content.html`
|
||||||
document.body.appendChild(webview)
|
document.body.appendChild(webview)
|
||||||
|
// TODO(deepak1556): With https://codereview.chromium.org/2836973002
|
||||||
|
// focus of the webContents is required when triggering the api.
|
||||||
|
// Remove this workaround after determining the cause for
|
||||||
|
// incorrect focus.
|
||||||
|
webview.focus()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue