Closed
Bug 696621
Opened 13 years ago
Closed 13 years ago
Inadvertent global variable creation in mail/base/content/folderPane.js
Categories
(Thunderbird :: Folder and Message Lists, defect)
Thunderbird
Folder and Message Lists
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 11.0
People
(Reporter: jik, Assigned: jik)
Details
Attachments
(1 file)
2.74 KB,
patch
|
squib
:
review+
|
Details | Diff | Splinter Review |
An add-on which I recently wrote was fully reviewed,but the reviewer (Kent James) commented as follows: Interesting little issue: We normally don't allow addons to add new unnamespaced global variables to global windows. However, running your addon causes several new names, including "acct" and "folderWithFlag" that comes from bugs in the core folderPane.js with code like this: for each (folderWithFlag in fixIterator(foldersWithFlag.enumerate() which should be for each (let folderWithFlag in fixIterator(foldersWithFlag.enumerate() I'm not sure if that code is ever run in standard TB 8 with the folder switch feature removed. If it isn't, then technically your code does not meet our AMO standards. Hmmm... at least for now I'll ignore this. The patch I'm about to attach (submitting the bug first to get the bug # so I can put it in the patch title) fixes the inadvertent global variable creations in folderPane.js.
Assignee | ||
Comment 1•13 years ago
|
||
Assignee: nobody → jik
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attachment #568923 -
Flags: review?(squibblyflabbetydoo)
Updated•13 years ago
|
Status: NEW → ASSIGNED
Comment 2•13 years ago
|
||
Comment on attachment 568923 [details] [diff] [review] patch to fix inadvertent global variables Review of attachment 568923 [details] [diff] [review]: ----------------------------------------------------------------- Sorry about the delay on this. I was swamped with stuff leading up to the last release/merge. I ran with this for a while, and everything looks ok to me.
Attachment #568923 -
Flags: review?(squibblyflabbetydoo) → review+
Updated•13 years ago
|
Keywords: checkin-needed
Comment 3•13 years ago
|
||
Checked in as http://hg.mozilla.org/comm-central/rev/2320a8ec2c1e
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 11.0
You need to log in
before you can comment on or make changes to this bug.
Description
•