Closed Bug 239835 Opened 21 years ago Closed 21 years ago

Possible tray icon notification redirection

Categories

(SeaMonkey :: MailNews: Message Display, defect)

x86
Windows 95
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: neil, Assigned: neil)

Details

Attachments

(1 file, 1 obsolete file)

Before creating a system tray icon notification window nsMessengerWinIntegration searches the whole window station for an existing window of the class MailBiffNotificationMessageWindow. If such a window already exists, either from running multiple debug builds, or from a malicious application, then any shell icon notifications will be linked that instance rather than the instance trying to show the icon.
Attached patch First go at a patch (obsolete) — Splinter Review
This makes the window handle a global so we never have to search for a previous instance.
Assignee: sspitzer → neil.parkwaycc.co.uk
Status: NEW → ASSIGNED
Neil I forgot where we left of with this discussion yesterday. Are there problems with this patch that need investigation or different approaches we were talking about besides this one?
I was wondering whether you were happy with these globals, perhaps these variables and methods should be part of the nsMessengerWinIntegration.cpp object - so for instance you could destroy the window when the object is destroyed.
Comment on attachment 145566 [details] [diff] [review] First go at a patch I don't really have a preference one way or the other. Btw, I think you accidentally removed a curly brace at the top of this patch. sr=mscott if you want to go the global route.
Attachment #145566 - Flags: superreview+
> #define NOTIFICATIONCLASSNAME "MailBiffNotificationMessageWindow" It used to be app name dependent, so different mail apps could run if one had them. Now, all mail applications will be referencing the same biff window, i.e. tb and sm cannot run together. Or was it not working like that before?
(In reply to comment #5) >>#define NOTIFICATIONCLASSNAME "MailBiffNotificationMessageWindow" > >It used to be app name dependent, so different mail apps could run if one >had them. Now, all mail applications will be referencing the same biff window, >i.e. tb and sm cannot run together. > >Or was it not working like that before? I don't think so... anyway, this way it's better, because it doesn't search for previous instances so you can even run release & debug simultaneously :-)
Attachment #145566 - Attachment is obsolete: true
Comment on attachment 150275 [details] [diff] [review] Updated for bitrot Transferring mscott's sr.
Attachment #150275 - Flags: superreview+
Attachment #150275 - Flags: review?(sspitzer)
Comment on attachment 150275 [details] [diff] [review] Updated for bitrot Switching reviewer.
Attachment #150275 - Flags: review?(sspitzer) → review?(bienvenu)
Attachment #150275 - Flags: review?(bienvenu) → review+
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Product: Browser → Seamonkey
Component: MailNews: Notification → MailNews: Message Display
QA Contact: stephend → search
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: