Closed Bug 876185 Opened 12 years ago Closed 12 years ago

messageInjection.js: add_sets_to_folders: messageSet is not defined (line 713)

Categories

(Thunderbird :: Testing Infrastructure, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 25.0

People

(Reporter: tessarakt, Assigned: aceman)

References

Details

Attachments

(1 file)

See https://bugzilla.mozilla.org/show_bug.cgi?id=876089#c18 I do not trigger the exception any longer. A number of tests call the function, but none causes this problem. Maybe none of them triggers the relevant codepath.
Yes, while the error is not seen in any test logs, the problem can be confirmed just by reading the code. messageSet is a local (let) variable used above this line, but does not exist at this point.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Linux → All
Hardware: x86_64 → All
This seems to be caused by bug 588048, where the junk and read state was moved out of the loop having messageSet into a new loop where it is not set.
Assignee: nobody → acelists
Blocks: 588048
Bug 588048 probably got away with this because there seem to be no users of the junk/read functionality...
Attached patch patchSplinter Review
So here is some tweak so that those operations could work if needed.
Attachment #760208 - Flags: review?(mconley)
Attachment #760208 - Flags: review?(bugmail)
Status: NEW → ASSIGNED
Comment on attachment 760208 [details] [diff] [review] patch (I no longer have review authority)
Attachment #760208 - Flags: review?(bugmail)
Comment on attachment 760208 [details] [diff] [review] patch So feedback would be enough. I have chosen you personally to look at this because you seem to have introduced the error so maybe you know if this will fix it.
Attachment #760208 - Flags: feedback?(bugmail)
Comment on attachment 760208 [details] [diff] [review] patch Looks correct, like the cleanup on centralizing things in the message set. Thanks for cleaning up my old breakage!
Attachment #760208 - Flags: feedback?(bugmail) → feedback+
Comment on attachment 760208 [details] [diff] [review] patch Yep, I'm fine with this. Thanks aceman!
Attachment #760208 - Flags: review?(mconley) → review+
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Flags: in-testsuite+
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 25.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: