fix: webview.focus() should move page focus to webview (#14427)
This commit is contained in:
parent
aa01a7337c
commit
10176c71ff
2 changed files with 7 additions and 1 deletions
|
@ -1302,8 +1302,9 @@ describe('<webview> tag', function () {
|
|||
|
||||
await domReadySignal
|
||||
|
||||
// If this test fails, check if webview.focus() still works.
|
||||
const focusSignal = waitForEvent(webview, 'focus')
|
||||
webview.contentWindow.focus()
|
||||
webview.focus()
|
||||
|
||||
await focusSignal
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue