Open
Description
Preflight Checklist
- I have read the Contributing Guidelines for this project.
- I agree to follow the Code of Conduct that this project adheres to.
- I have searched the issue tracker for a bug report that matches the one I want to file, without success.
Electron Version
21.2.0
What operating system are you using?
Windows
Operating System Version
Windows 11 Enterprise 22H2
What arch are you using?
x64
Last Known Working Electron version
No response
Expected Behavior
- Have multiple
webview
- Call
.focus()
on one of them - Call
.focus()
on another
Expected: the other webview
receives a focus event.
Actual Behavior
It doesn't. the expected only happens if you first call .blur()
on whatever webview
currently has focus.
Testcase Gist URL
https://gist.github.com/MRayermannMSFT/ab44ba14685c1930023c90a5d740b638
Additional Information
My gist has some buttons you can use to play around with focusing various webview
/elements in the renderer DOM. The bug can most easily be seen to repro by using either of the "(no blur)" buttons. The focused counts of each thing should go up, but in actuality, whatever webview
is focused second does not have its focus count incremented.