Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: webContentsView steals focus after loading url #42578

Open
3 tasks done
t57ser opened this issue Jun 19, 2024 · 0 comments
Open
3 tasks done

[Bug]: webContentsView steals focus after loading url #42578

t57ser opened this issue Jun 19, 2024 · 0 comments
Labels

Comments

@t57ser
Copy link
Contributor

t57ser commented Jun 19, 2024

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

@electron-issue-triage electron-issue-triage bot added 31-x-y has-repro-gist Issue can be reproduced with code at https://gist.github.com/ labels Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 👍 Does Not Block Stable
Status: 👍 Does Not Block Stable
Development

No branches or pull requests

2 participants