Closed
Bug 1312239
Opened 8 years ago
Closed 8 years ago
In tabmail.xml use plain for..of on arrays and Object.entries() instead of Iterator()
Categories
(Thunderbird :: Mail Window Front End, enhancement)
Thunderbird
Mail Window Front End
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 52.0
People
(Reporter: aceman, Assigned: aceman)
References
Details
Attachments
(1 file)
8.13 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
In mail/base/tabmail.xml there are some arrays that are iterated over via Iterator() or Array.entries(). Those can be simplified.
Try run: https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=f52aa3f5297a729d949c87ac5bfc20e2986ac445
Attachment #8803669 -
Flags: review?(mkmelin+mozilla)
Comment 2•8 years ago
|
||
Comment on attachment 8803669 [details] [diff] [review] patch Review of attachment 8803669 [details] [diff] [review]: ----------------------------------------------------------------- Looks good overall, r=mkmelin ::: mail/base/content/tabmail.xml @@ +341,5 @@ > if (aTabType.name in this.tabTypes) > return; > > this.tabTypes[aTabType.name] = aTabType; > + for (let [modeName, modeDetails] of Object.entries(aTabType.modes)) { this one looks a little suspicious, please double check it's correct
Attachment #8803669 -
Flags: review?(mkmelin+mozilla) → review+
Thanks. I checked it now, dumped the returned objects (even modeDetails.toSource()) and they are the same with old and new code.
https://hg.mozilla.org/comm-central/rev/f0360f50e7a4d73a9d226e86dcfa19447e4148f6
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 52.0
You need to log in
before you can comment on or make changes to this bug.
Description
•