Closed
Bug 470474
Opened 17 years ago
Closed 16 years ago
gDBView.hdrForFirstSelectedMessage doesn't work for cross folder saved searches in the standalone msg window
Categories
(MailNews Core :: Backend, defect)
MailNews Core
Backend
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 3.0b3
People
(Reporter: mkmelin, Assigned: rain1)
References
Details
Attachments
(1 file)
|
1.07 KB,
patch
|
standard8
:
review+
Bienvenu
:
superreview+
|
Details | Diff | Splinter Review |
As noted in bug 466925 gDBView.hdrForFirstSelectedMessage doesn't work for saved searches, when viewing msgs in the standalone msg window. This makes marking as read/starred/deleted cause errors.
An error occurred updating the cmd_delete command; =[Exception... "Component
returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER)
[nsIMsgDBView.hdrForFirstSelectedMessage]" nsresult: "0x80004003
(NS_ERROR_INVALID_POINTER)" location: "JS frame ::
chrome://messenger/content/mailWindowOverlay.js :: SelectedMessagesAreDeleted
:: line 726" data: no]
| Assignee | ||
Comment 1•17 years ago
|
||
I can't seem to reproduce this with 20081230 trunk on Windows, IMAP/local saved searches, and the standalone message window (opened using a double click on the message). Is there an STR to follow?
| Assignee | ||
Comment 2•17 years ago
|
||
Oh, and the cause of this bug (if there is one) looks identical to that of bug 395495 .
| Reporter | ||
Comment 3•17 years ago
|
||
I just double click a message to open in standalone message window and this exception shows in the error console:
Error: uncaught exception: [Exception... "Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIMsgDBView.hdrForFirstSelectedMessage]" nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)" location: "JS frame :: chrome://messenger/content/mailWindowOverlay.js :: UpdateJunkButton :: line 1647" data: no]
| Reporter | ||
Comment 4•17 years ago
|
||
Putting this on the blocking radar, if we don't have time to fix it we should at least put back some try/catches in js, so the exception doesn't blow things up more than it needs to.
Flags: blocking-thunderbird3+
Whiteboard: [fix or put back som try/catch in js]
Target Milestone: --- → Thunderbird 3.0b3
Comment 5•16 years ago
|
||
This is probably caused by null mTreeSelection. I notice that nsMsgDBView has some specific code to look for this and react in a similar case, for example:
// if we don't have an tree selection we must be in stand alone mode....
if (!mTreeSelection)
{
*key = m_currentlyDisplayedMsgKey;
return NS_OK;
}
It should not be that hard to implement something similar in the search view.
It might be willing to take this if I could reproduce, which I can't.
| Reporter | ||
Comment 6•16 years ago
|
||
You're right, I can't reproduce this anymore.
->WFM
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → WORKSFORME
| Reporter | ||
Comment 7•16 years ago
|
||
Actually, I still see this, though you have to back out bug 476418 since that masks it.
rkent: this is cross folder saved searches only - similar to bug 395495.
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Summary: gDBView.hdrForFirstSelectedMessage doesn't work for saved searches in the standalone msg window → gDBView.hdrForFirstSelectedMessage doesn't work for cross folder saved searches in the standalone msg window
Whiteboard: [fix or put back som try/catch in js]
Comment 8•16 years ago
|
||
sid, are you interested in taking this on?
| Assignee | ||
Comment 9•16 years ago
|
||
Yes, I'll take this.
Assignee: bienvenu → sid.bugzilla
Status: REOPENED → ASSIGNED
| Assignee | ||
Comment 10•16 years ago
|
||
This basically does what rkent says in comment 5, except it uses the currently displaying view index as we don't have an m_db to use the key with.
Attachment #375712 -
Flags: superreview?(bienvenu)
Attachment #375712 -
Flags: review?(bugzilla)
Updated•16 years ago
|
Attachment #375712 -
Flags: superreview?(bienvenu) → superreview+
Comment 12•16 years ago
|
||
Comment on attachment 375712 [details] [diff] [review]
patch
Looks good: r=Standard8. I've pushed this already:
http://hg.mozilla.org/comm-central/rev/110aa71394ef
Attachment #375712 -
Flags: review?(bugzilla) → review+
Updated•16 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 16 years ago → 16 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•