Closed Bug 439480 Opened 16 years ago Closed 15 years ago

UI hang with Not enough arguments [nsIMsgImapMailFolder.updateFolder]

Categories

(Thunderbird :: Mail Window Front End, defect)

x86
Windows XP
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 3.0b3

People

(Reporter: rkent, Assigned: rkent)

References

Details

(Keywords: hang, regression)

Attachments

(1 file, 2 obsolete files)

Using a TB trunk build based on 2008-06-15 download, the UI hung after I:

1) Created a subfolder "subtest" of an IMAP server as such: Inbox/test/subtest
2) Exited TB, and re-started to get subtest to appear
3) Redefined a filter that previously moved to "test" to move instead to "subtest"
4) Sent a message matching the filter, tried to open subtest folder.

UI hangs with an hourglass. In the console, I have the error:

JavaScript error: chrome://global/content/bindings/tree.xml, line 951: uncaught
exception: [Exception... "Not enough arguments [nsIMsgImapMailFolder.updateFolde
r]"  nsresult: "0x80570001 (NS_ERROR_XPC_NOT_ENOUGH_ARGS)"  location: "JS frame
:: chrome://messenger/content/commandglue.js :: ChangeFolder :: line 214"  data:
 no]

The commandglue.js location referenced is the following code:

251     //Need to do this after rerooting folder.  Otherwise possibility of receiving folder loaded
252     //notification before folder has actually changed.
253     if (viewType != nsMsgViewType.eShowVirtualFolderResults)
254       folder.updateFolder(msgWindow);

Investigating, updateFolder is defined in two different interfaces with the same name, but different number of parameters. Probably we shouldn't do that.
Blocks: 436718
Keywords: hang, regression
This strikes me not as a regression, but rather as a previously undiscovered bug.  In any case, I can't actually find anyone who uses nsIMsgImapMailFolder's version of updateFolder.  The method was added in bug 393727, ostensibly for extensions to use.  I'm adding Nick to the cc list to hopefully confirm.
(In reply to comment #1)
> This strikes me not as a regression, but rather as a previously undiscovered
> bug.  In any case, I can't actually find anyone who uses nsIMsgImapMailFolder's
> version of updateFolder.  The method was added in bug 393727, ostensibly for
> extensions to use.  I'm adding Nick to the cc list to hopefully confirm.
> 
You may be right. In any case, even if it was manifested by some of the recent checkins, it probably is still considered a bug in either commandglue.js, or of the original definition of the two-parameter version of updateFolder.

It would be very easy to just rename the updateFolder method in nsIMsgImapMailFolder to something different (such as UpdateFolderWithNotification) to prevent this problem. I would be happy to do that patch with a little encouragement.
(In reply to comment #2)
> It would be very easy to just rename the updateFolder method in
> nsIMsgImapMailFolder to something different (such as
> UpdateFolderWithNotification) to prevent this problem. I would be happy to do
> that patch with a little encouragement.

need bienvenu input?
Status: UNCONFIRMED → NEW
Ever confirmed: true
(In reply to comment #2)

> It would be very easy to just rename the updateFolder method in
> nsIMsgImapMailFolder to something different (such as
> UpdateFolderWithNotification) to prevent this problem. I would be happy to do
> that patch with a little encouragement.

yes, consider yourself encouraged :-)
Assignee: nobody → kent
Status: NEW → ASSIGNED
Attachment #382364 - Flags: superreview?(bienvenu)
Attachment #382364 - Flags: review?(bienvenu)
Whiteboard: [needs r/sr bienvenu]
Comment on attachment 382364 [details] [diff] [review]
Renamed to UpdateFolderWithListener

this doesn't look like the right patch.
Attached patch Right patch this time. (obsolete) — Splinter Review
You're right, sorry, here's the correct one.
Attachment #382364 - Attachment is obsolete: true
Attachment #382785 - Flags: superreview?(bienvenu)
Attachment #382785 - Flags: review?(bienvenu)
Attachment #382364 - Flags: superreview?(bienvenu)
Attachment #382364 - Flags: review?(bienvenu)
Attachment #382785 - Flags: superreview?(bienvenu)
Attachment #382785 - Flags: superreview+
Attachment #382785 - Flags: review?(bienvenu)
Attachment #382785 - Flags: review+
Comment on attachment 382785 [details] [diff] [review]
Right patch this time.

nit - should be aMsgWindow in the impls. Thx for the patch.
Attachment #382785 - Attachment is obsolete: true
Attachment #383539 - Flags: superreview+
Attachment #383539 - Flags: review+
Keywords: checkin-needed
Whiteboard: [needs r/sr bienvenu] → [needs checkin]
Checked in: http://hg.mozilla.org/comm-central/rev/6129e94e5870
Keywords: checkin-needed
Whiteboard: [needs checkin]
Target Milestone: --- → Thunderbird 3.0b3
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: