Closed Bug 209658 Opened 21 years ago Closed 19 years ago

Click on System Tray notification throws JS exception and may open mail3pane window

Categories

(SeaMonkey :: MailNews: Message Display, defect)

x86
Windows XP
defect
Not set
major

Tracking

(Not tracked)

VERIFIED WORKSFORME

People

(Reporter: olivier.vit, Assigned: sspitzer)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030615
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030615

With multiple POP accounts, get new mails notified, click on the system tray icon

In JavaScript console you get 
Error: [Exception... "Component returned failure code: 0x80070057
(NS_ERROR_ILLEGAL_VALUE) [nsIRDFService.GetResource]"  nsresult: "0x80070057
(NS_ERROR_ILLEGAL_VALUE)"  location: "JS frame ::
chrome://messenger/content/msgMail3PaneWindow.js :: SelectFolder :: line 1421" 
data: no]
Source File: chrome://messenger/content/msgMail3PaneWindow.js
Line: 1421

Reproducible: Always

Steps to Reproduce:
1. send your self a message
2. wait until notification happens
3. open JavaScript console
4. click on System Tray icon

Actual Results:  
Mail 3 Pane window doesn't always get the focus (depends on which account is
active in it / which account has received the new message ?)
Exception is thrown in JS console

Expected Results:  
Always focus, no exception

The focus issue is difficult to isolate, but it looks that if current mail
account  is not the account receiving the new message, it doesn't focus on the
window.

Exception is always thrown, even if a single message comes on in on the current
mail account
reproduced on win2000 1.4 final
Replicated with 
  Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b) Gecko/20031120
Achieved this by having a new message arrive to one account while the 3pane is 
focused on a different account.  Window did raise (come forward) when the icon 
was clicked.

Oliver, what do you mean by "*may* open mail3pane window" -- isn't the window 
supposed to be opened (or raised) by clicking on the icon?  Do you mean 
"*may not* open ... window"?

Note that if there is no mail/news window open when the biff occurs, the window 
opens and there is no JS exception.  However, if the icon is not cleared and the 
mail/news window lowered, clicking again will result in this same error.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Product: Browser → Seamonkey
I am not seeing this JS exception being thrown any longer, trying to reproduce 
my comment 2.

Olivier Vit, can you still see the symptom?
wfm in 1.7.3
thanks
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
No specific bug / patch referenced as the fix.

-> WORKSFORME
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Status: REOPENED → RESOLVED
Closed: 19 years ago19 years ago
Resolution: --- → FIXED
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Sorry!  Resolving properly.
Status: REOPENED → RESOLVED
Closed: 19 years ago19 years ago
Resolution: --- → WORKSFORME
Status: RESOLVED → VERIFIED
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.