-
Notifications
You must be signed in to change notification settings - Fork 16.6k
Closed as not planned
Labels
38-x-ybug 🪲bug/regression ↩️A new version of Electron broke somethingA new version of Electron broke somethingcomponent/apphas-repro-gistIssue can be reproduced with code at https://gist.github.com/Issue can be reproduced with code at https://gist.github.com/platform/linuxwayland
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
38.2.0
What operating system(s) are you using?
Ubuntu
Operating System Version
24.04.03
What arch are you using?
arm64 (including Apple Silicon)
Last Known Working Electron version
38.1.2
Does the issue also appear in Chromium / Google Chrome?
I don't know how to test
Expected Behavior
app.focus() focuses on the first visible window.
https://www.electronjs.org/docs/latest/api/app#appfocusoptions
Actual Behavior
app.focus() shows a notification saying "[app name] is ready" and does not focus on the window.
Testcase Gist URL
https://gist.github.com/5a8dd6f127bfed24b92c4797250c6ed3
Additional Information
The repro calls app.focus() 2.5s after launching the app. Once the app starts, click on the Electron Fiddle window to switch focus away from the repro app. After 2.5s, you should see the notification on Electron 38.2.0+. This does not repro on 38.1.2 or latest 37 (37.8.0).
I observed this issue on both Ubuntu and Fedora.
Metadata
Metadata
Assignees
Labels
38-x-ybug 🪲bug/regression ↩️A new version of Electron broke somethingA new version of Electron broke somethingcomponent/apphas-repro-gistIssue can be reproduced with code at https://gist.github.com/Issue can be reproduced with code at https://gist.github.com/platform/linuxwayland