-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
document.hasFocus()
can return true
for multiple windows being opened
#122352
Comments
We probably have this issue for any setting that the |
Turns out we already check for the window having focus or not:
I cannot reproduce this but if //cc @rzhao271 |
@jrieken are you able to reliably reproduce? Any special window manager installed? |
window.nativeTabs
while having many windows opendocument.hasFocus()
can return true
for multiple windows being opened
Yeah, it is tricky... So, the first time I set |
Oh yeah I can reproduce. Steps:
=> 🐛 each window shows the dialog |
Reported as electron/electron#28897 |
Temporary workarounds:
|
Ok I finally built electron 12 source on the Mac. With this build, I commented out the line that initially focuses the frame. I then tested electron/electron#25287 with the build, and found out that that Fiddle still works perfectly fine, too. Therefore, I believe we can remove most of https://github.com/electron/electron/pull/25292/files and just let Chromium handle the focusing again. |
@deepak1556's upstream fix is here: electron/electron#29204, and the backport for that fix is here: electron/electron#29235 |
Given #125122 and other related issues, we will be going back to Electron |
Testing #122200
window.nativeTabs
Untitled.mov
The text was updated successfully, but these errors were encountered: