If I try to compact all folders of the current account using "File -> Compact Folders", I get an error message in the Error Console of Thunderbird. (However, the actual compacting is done successfully.)
1. Create a New Profile
2. Add POP account
3. Select any folder, e.g. "Local Folders -> Outbox"
4. "File -> Compact Folders"
5. Open the Error Console ("Tools -> Error Console")
Error: An error occurred executing the cmd_compactFolder command: TypeError: this._resetThreadPane is not a function
Source File: chrome://global/content/globalOverlay.js
Arch Linux / Thunderbird 7.0.1
Confirming on linux, TB7 and TB8.
I couldn't find any declaration for the _resetThreadPane() function in the whole comm-central tree.
The function is called from mail/base/content/folderPane.js line 2300. I don't know what it is supposed to do but the exception probably isn't intentional. Magnus Melin, it seems you merged that line into the file, can you find out what is it for?
Looks like i only changed the indention (and such) - http://hg.mozilla.org/comm-central/diff/2f6ef8daa83e/mail/base/content/folderPane.js. I don't know what it's for. Maybe hg grep can tell... or then it was obsolete when i touched the code already.
I see now. Can you find out who put it there before? But maybe it is from the time before hg.
Ok, so this is a regression from bug 474701 which removed that function - http://hg.mozilla.org/comm-central/diff/b0e37b312b54/mail/base/content/folderPane.js but forgot to remove it from this one place.
Created attachment 585128 [details] [diff] [review]
Comment on attachment 585128 [details] [diff] [review]
Oops! Thanks for reporting this and thanks for the fix!
Had this been written in C, the compiler could have caught this.
(In reply to :aceman from comment #9)
> Had this been written in C, the compiler could have caught this.
> it not possible to check for undefined functions in JS?