We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
12.0.5
macOS
11.2.3
arm64 (including Apple Silicon)
No response
document.hasFocus() is only true for the window that has focus.
document.hasFocus()
true
Ever window reports document.hasFocus() to be true right after opening.
https://gist.github.com/16e6fc829febd0cab115dfd0850a31be
The text was updated successfully, but these errors were encountered:
It is a side-effect of #25292, where we put the webContents to focus after load url if it was not hidden on creation.
webContents
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Preflight Checklist
Electron Version
12.0.5
What operating system are you using?
macOS
Operating System Version
11.2.3
What arch are you using?
arm64 (including Apple Silicon)
Last Known Working Electron version
No response
Expected Behavior
document.hasFocus()
is onlytrue
for the window that has focus.Actual Behavior
Ever window reports
document.hasFocus()
to betrue
right after opening.Testcase Gist URL
https://gist.github.com/16e6fc829febd0cab115dfd0850a31be
Additional Information
No response
The text was updated successfully, but these errors were encountered: