Closed Bug 478571 Opened 15 years ago Closed 15 years ago

JavaScript component does not have a method named: "folderAdded"' when calling method: [nsIMsgFolderListener::folderAdded]

Categories

(Thunderbird :: Folder and Message Lists, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 3.0b2

People

(Reporter: Nomis101, Assigned: standard8)

References

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; de-de) AppleWebKit/530.0+ (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b3pre) Gecko/20090214 Shredder/3.0b2pre

While playing around with Thunderbird I recognized the following.
First: If I empty my trash I get the following entry in my error console (the good news, its empty than):

Error: [Exception... "'JavaScript component does not have a method named: "folderAdded"' when calling method: [nsIMsgFolderListener::folderAdded]"  nsresult: "0x80570030 (NS_ERROR_XPC_JSOBJECT_HAS_NO_FUNCTION_NAMED)"  location: "JS frame :: chrome://messenger/content/folderPane.js :: ftc_emptyTrash :: line 1381"  data: no]
Source File: chrome://messenger/content/folderPane.js
Line: 1381

I don't get this if I delet a single mail from the trash.
Second: If I create a new IMAP account under Thunderbird (and the folder gets created) than I get a similar error in the error console:

Error: [Exception... "'JavaScript component does not have a method named: "folderAdded"' when calling method: [nsIMsgFolderListener::folderAdded]"  nsresult: "0x80570030 (NS_ERROR_XPC_JSOBJECT_HAS_NO_FUNCTION_NAMED)"  location: "<unknown>"  data: no]


FYI, if I than remove this IMAP account I get this error:

Error: uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIMsgFolder.server]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: file:///Applications/Thunderbird.app/Contents/MacOS/modules/folderUtils.jsm :: setPropertyAtoms :: line 92"  data: no]

But this has nothing to do with "folderAdded".

Reproducible: Always




I see the same symptomes with
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b3pre) Gecko/20090214 Shredder/3.0b2pre
and 
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; de; rv:1.9.2a1pre) Gecko/20090213 Thunderbird/3.1a1pre
Component: General → Folder and Message Lists
QA Contact: general → folders-message-lists
Version: unspecified → Trunk
Attached patch The fixSplinter Review
The issue is the new move/copy listener for activity manager doesn't have a folderAdded function. This patch adds it (so that we have a complete set of functions in that file in case anyone is looking for them) and changes the listener addition so that we don't listen to things we don't need.
Assignee: nobody → bugzilla
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #362465 - Flags: review?(bienvenu)
Oh, I'm proposing we'll get this in for beta 2 to cut down error console noise.
OS: Mac OS X → All
Hardware: x86 → All
Target Milestone: --- → Thunderbird 3.0b2
Yes, this fixed it for me.
(that it is documented I also opened a bug for the error I get if I remove an account)
Attachment #362465 - Flags: review?(bienvenu) → review+
Checked in with a=clarkbw over irc: http://hg.mozilla.org/comm-central/rev/2ab21ba79df9
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.