[Bug]: webContentsView steals focus after loading url #42578
Labels
31-x-y
32-x-y
bug 🪲
component/WebContentsView
has-repro-gist
Issue can be reproduced with code at https://gist.github.com/
platform/windows
Preflight Checklist
Electron Version
31.0.0
What operating system are you using?
Windows
Operating System Version
10.0.19042
What arch are you using?
x64
Last Known Working Electron version
No response
Expected Behavior
While working in one webContentsView, the focus should not be taken away
Actual Behavior
Have 2 webContentsViews side by side, when one navigates it steals the focus after load
This should not happen or at least there should be a way to prevent this
Testcase Gist URL
https://gist.github.com/t57ser/593fffc8417dc35f1df5c84227db595d
Additional Information
To reproduce
in the devtools of one webContentsView do:
setTimeout(() => {location = "http://www.example.com"}, 3000)
put the focus into the input box of the webContentsView to see the cursor
After the load, the focus jump
The text was updated successfully, but these errors were encountered: