Closed Bug 288716 Opened 20 years ago Closed 20 years ago

JS error in msgMail3PaneWindow.js when switching layout with no message selected

Categories

(SeaMonkey :: MailNews: Message Display, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: iannbugzilla, Assigned: iannbugzilla)

Details

Attachments

(1 file, 2 obsolete files)

Using Build ID 2005032605 on WinXP SP2
Steps to reproduce
1. Open mailnews
2. Either don't connect to mail server or make sure no message is selected
3. Switch from current layout to a different layout (in preferences)
4. Examine JS console

Expected results
1. No error messages to do with the switching of layout

Actual results
1. Error message along the lines of:
Error: [Exception... "Component returned failure code: 0x80004005
(NS_ERROR_FAILURE) [nsIMsgDBView.reloadMessage]"  nsresult: "0x80004005
(NS_ERROR_FAILURE)"  location: "JS frame ::
chrome://messenger/content/msgMail3PaneWindow.js :: UpdateMailPaneConfig :: line
673"  data: no]
Source File: chrome://messenger/content/msgMail3PaneWindow.js
Line: 673
Status: NEW → ASSIGNED
Attached patch Patch v0.1 (obsolete) — Splinter Review
This patch:
* Adds to check to see if there is only a single message selected before
attempting to reload it

If there isn't a single message selected should a blank pane be displayed or
the mail start page?
Attachment #179343 - Flags: review?(neil.parkwaycc.co.uk)
Attachment #179343 - Flags: review?(neil.parkwaycc.co.uk)
Attached patch Tweaked patch v0.1a (obsolete) — Splinter Review
Changes since v0.1
* Additional check to make sure .selection exists before looking at count
Attachment #179343 - Attachment is obsolete: true
Attachment #179418 - Flags: review?(neil.parkwaycc.co.uk)
Attachment #179418 - Flags: review?(neil.parkwaycc.co.uk)
Changes since v0.1a
* Made use of GetNumSelectedMessages() as suggested by Neil
Attachment #179418 - Attachment is obsolete: true
Attachment #179525 - Flags: review?(neil.parkwaycc.co.uk)
This got checked in as part of bug 288366 and it was reviewd as part of patch
0.1e and 0.1f but I can reverse that part out and check it in once you have
reviewed this if you want.
Comment on attachment 179525 [details] [diff] [review]
Revised patch v0.1b

Sorry, I thought I'd already reviewed this :-[
Attachment #179525 - Flags: review?(neil.parkwaycc.co.uk) → review+
Comment on attachment 179525 [details] [diff] [review]
Revised patch v0.1b

Wait a second, I'm blind
It turns out that we have a convenience method gDBView.numSelected
Fixed as part of bug 288366
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Followed steps to reproduce in comment 0 and couldn't reproduce in build
2005-05-08-05 on Windows XP Seamonkey trunk.

Verified FIXED.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: