Open
Bug 634663
Opened 14 years ago
Updated 14 years ago
Clicking new-mail balloon in the taskbar frequently doesn't focus Mail & News window
Categories
(SeaMonkey :: MailNews: Backend, defect)
Tracking
(Not tracked)
NEW
People
(Reporter: rsx11m.pub, Unassigned)
References
()
Details
(Keywords: polish)
I like the new "balloon" notification which bug 605972 introduced that comes up when new mail arrives (mail.biff.show_balloon), but see a somewhat unexpected behavior in both Windows 7 and XP. When clicking on the balloon, the Mail & News window is opened or gets into the foreground (most of the time, sometimes it doesn't), but may not be focused. This is somewhat independent of whether
it yet has to be opened, was already opened, or was minimized, but the exact conditions are a bit fuzzy and hard to reproduce.
When clicking the balloon, the mouse is in the lower-right corner, thus has to be moved back into the window to click on the new message. Using the [N] keyboard shortcut instead would be nice, but won't work as the window isn't focused. Sometimes the window isn't even brought into the foreground, I've seen this when other applications have the focus (e.g., Firefox).
Seen on Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b12pre) Gecko/20110215 SeaMonkey/2.1b3pre & Mozilla/5.0 (Windows NT 5.1; rv:2.0b12pre) Gecko/20110215 SeaMonkey/2.1b3pre. Since I don't encounter the issue with the respective Thunderbird/3.3a3pre trunk builds (those always focuse the main mail window), this seems to be specific to SeaMonkey and hopefully fixable by whatever Thunderbird is doing to properly focus the window.
Comment 1•14 years ago
|
||
Looking at nsMessengerWinIntegration.cpp, if the main mail3pane window is already open we eventually call activateWindow() to focus on that window (like Thunderbird does) so we should behave the same. But according to rsx11m we sometimes don't acquire focus (or get it stolen)
Our other code path which TB doesn't have calls the nsIWindowWatcher to open a new mail3pane window but I don't see anything that calls focus on that window.
Component: OS Integration → MailNews: Backend
QA Contact: os-integration → mailnews-backend
Comment 2•14 years ago
|
||
Sorry, but this (both clicking the balloon, and double-clicking the icon) works for me on Windows XP. (I don't have Windows 7.)
(In reply to comment #1)
> Our other code path which TB doesn't have calls the nsIWindowWatcher to open a
> new mail3pane window but I don't see anything that calls focus on that window.
My understanding is that opening a window focuses it by default.
Comment 3•14 years ago
|
||
Ah, rsx11m I'm going to ask an obvious question, does this happen in -safe-mode?
Yes, it's reproducible on Windows XP with -safe-mode as well, though I needed to try 3-4 times before it happened. It helps to have some other applications running in parallel to trigger the effect.
Regarding comment #1, I had a closer look at the Mail & News window during the incident, and indeed it gets focus for a brief time but then looses it again. Thus, apparently the focus gets stolen shortly after it was acquired.
It seems that the problem occurs (mainly) when the focus is on a different application when the message arrives *and* when the balloon is clicked. I've
just had a case where clicking the balloon retained both the focus and the foreground with the current application, whereas the Mail & News window was just blinking in the taskbar to indicate that action is required (it didn't even get to the foreground at all). In this instance, the currently focused application was having active I/O.
Sorry for not being able to provide more specific steps to reproduce. It happens frequently enough to be an annoyance, but is elusive enough to not allow the identification of any specific pattern...
Comment 6•14 years ago
|
||
Clicking on the balloon should act the same way as double-clicking the icon. So could you try turning the balloon off temporarily?
Note that the old alert isn't equivalent in this respect as it's part of the application so counts as gaining foreground activation.
Ok, I've switched back to the traditional alert and set alerts.totalOpenTime
to 20sec so that I actually manage to hit it, let's see what this does...
Comment 8•14 years ago
|
||
No, don't click on the old alert, that's known to work! Click on the icon.
Oops, my bad. I've switched off the old alert and now should get the icon only.
| Reporter | ||
Comment 10•14 years ago
|
||
So, another case, and another application was running in parallel but the focus was on the SeaMonkey browser this time. E-mail arrives, no balloon but icon.
1. Double-clicked on the icon now;
2. Mail & News window goes into foreground, briefly gains focus
(title bar turns blue);
3. Mail & News window looses focus (title bar turns gray);
4. SeaMonkey blinks in the taskbar to indicate user action;
5. no application has the focus at this point.
I'm using the Windows Classic desktop theme, in case this makes any difference (I wouldn't know though why it should, but maybe tiny details matter).
Comment 11•14 years ago
|
||
That means that the bug has nothing to do with bug 605972. It just makes it easier to trigger (by giving you a whole Windows balloon to click instead of just the icon).
However the icon code has been around for almost a decade, but I guess most people manage to click on the alert, or ignore the icon, otherwise I would have expected the bug to have been reported before.
| Reporter | ||
Comment 12•14 years ago
|
||
The balloon is certainly much more attractive than the little icon or the fairly quick slide-in/slide-out notification, that's likely why I haven't used either before as much as I use the new balloon. So, that certainly makes sense.
| Reporter | ||
Comment 13•14 years ago
|
||
Upon further testing, I could also reproduce this on Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.17) Gecko/20110123 SeaMonkey/2.0.12, so Neil's suspicion was correct that the effect has been around for a while already.
The new balloon notification makes it more prominent, though, as it's more likely to be used than the small taskbar icon. Thus, it would nevertheless be good to fix this if possible...
Comment 14•14 years ago
|
||
Hmm rsx11m, based on the latest comments should this bug move to -> MailNews::Backend ?
| Reporter | ||
Comment 15•14 years ago
|
||
That's where it is already, or do you mean MailNews Core instead of SeaMonkey?
I'll double-check on my prior assessment that it didn't occur with Thunderbird.
Comment 16•14 years ago
|
||
Yeah I mean MailNews Core. Sorry.
| Reporter | ||
Comment 17•14 years ago
|
||
I've been using double-click on the new-mail icon to open Thunderbird as well for a while now, but don't see the focus issue there on the same machines where I've seen it on SeaMonkey during the same time period. Thus, if it's a MailNews Core bug, it may be manifesting in SeaMonkey only, or it's indeed specific to the SeaMonkey code.
You need to log in
before you can comment on or make changes to this bug.
Description
•