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

Notification focus on click in Chrome #9467

Merged
merged 1 commit into from
Jun 1, 2024

Conversation

DannyDaemonic
Copy link
Contributor

@DannyDaemonic DannyDaemonic commented May 25, 2024

For Windows, it seems at some point Chrome stopped focusing on the window/tab that sent the notification when you click it. Firefox still behaves correctly, but to get this to work again for Chrome, I had to call window.parent.focus().

Edit: I did test this change in other browsers. This fixes the same issue in Edge (because it's basically just Chrome now) and it doesn't break anything in Firefox.

@pabzm
Copy link
Member

pabzm commented May 29, 2024

@DannyDaemonic Thank you for the contribution! Did you by chance test this change on other OS like Linux or macos?

I'm wondering how this behaves on those.

@DannyDaemonic
Copy link
Contributor Author

I tested it with Firefox on Linux and no issues there. I just installed Chrome and can confirm the same issue exists under the Linux builds of Chrome and the same focus fix resolves it.

Unfortunately, I don't currently have an easy way to test this on macOS.

@pabzm pabzm requested review from alecpl and pabzm May 30, 2024 08:53
Copy link
Member

@pabzm pabzm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much! That's good enough for me 👍

@alecpl alecpl added this to the 1.6.8 milestone Jun 1, 2024
@alecpl alecpl merged commit 7575efc into roundcube:master Jun 1, 2024
16 checks passed
alecpl pushed a commit that referenced this pull request Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants