Closed
Bug 1337872
Opened 8 years ago
Closed 8 years ago
Replace remaining in-tree consumer of non-standard Iterator() in mailnews/ in comm-central
Categories
(MailNews Core :: Database, defect)
MailNews Core
Database
Tracking
(thunderbird54 fixed)
RESOLVED
FIXED
Thunderbird 54.0
Tracking | Status | |
---|---|---|
thunderbird54 | --- | fixed |
People
(Reporter: arai, Assigned: arai)
References
Details
Attachments
(1 file, 2 obsolete files)
(deleted),
patch
|
aceman
:
review+
|
Details | Diff | Splinter Review |
there are 2 remaining consumers of Iterator in mailnews/db/gloda/modules/index_msg.js
will post a patch shortly.
Assignee | ||
Comment 1•8 years ago
|
||
for (_ in Iterator(obj, true)) can be replaced with for (_ of Object.keys(obj))
and Iterator(fixIterator(_)) can be replaced with XPCOMUtils.IterSimpleEnumerator(_).
Attachment #8835007 -
Flags: review?(bugmail)
Comment 2•8 years ago
|
||
Comment on attachment 8835007 [details] [diff] [review]
Remove remaining Iterator consumer from gloda.
Review of attachment 8835007 [details] [diff] [review]:
-----------------------------------------------------------------
This looks good to me, but since I no longer have review authority, someone with authority like :aceman should review or otherwise sign-off on my review.
::: mailnews/db/gloda/modules/index_msg.js
@@ +1185,2 @@
> }
> + } else {
I think you can/should remove this else case here. I'm assuming the very confusing redundant false assignment was the result of a code refactoring I didn't clean-up appropriately in the original landing. (keepIterHeader is only ever true/false, so there's no deeper meaning.)
Attachment #8835007 -
Flags: review?(bugmail)
Attachment #8835007 -
Flags: review?(acelists)
Attachment #8835007 -
Flags: review?
Attachment #8835007 -
Flags: feedback+
Updated•8 years ago
|
Attachment #8835007 -
Flags: review?
Comment on attachment 8835007 [details] [diff] [review]
Remove remaining Iterator consumer from gloda.
Review of attachment 8835007 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks for cleaning up c-c.
Some new weird syntax we get here ;)
Please do what asuth says and then I guess it should be OK.
Attachment #8835007 -
Flags: review?(acelists) → review+
Assignee | ||
Comment 4•8 years ago
|
||
https://hg.mozilla.org/comm-central/rev/6f73de9faa96ace32345213be22656e91d336e93
Bug 1337872 - Remove remaining Iterator consumer from gloda. r=aceman, f=asuth
Assignee | ||
Updated•8 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-thunderbird54:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 54.0
Comment 5•8 years ago
|
||
Backout:
https://hg.mozilla.org/comm-central/rev/a81dbcf91a42c909817cf47aa9693c20fcfe02a6
Sorry, I had to back this out for the following test failure:
TEST-UNEXPECTED-FAIL | mailnews/db/gloda/test/unit/test_index_compaction.js | xpcshell return code: 0
https://treeherder.mozilla.org/#/jobs?repo=comm-central&revision=6f73de9faa96ace32345213be22656e91d336e93&selectedJob=76078291
This failure appeared with this push.
The other four proxy failures are due to bug 791645.
Sorry for the late backout, the tree is too "colourful" currently to see failures immediately.
Status: RESOLVED → REOPENED
Flags: needinfo?(bugmail)
Flags: needinfo?(arai.unmht)
Flags: needinfo?(acelists)
Resolution: FIXED → ---
Assignee | ||
Comment 6•8 years ago
|
||
fixed scope for msgHdr.
Flags: needinfo?(bugmail)
Flags: needinfo?(arai.unmht)
Flags: needinfo?(acelists)
Attachment #8836245 -
Flags: review?(acelists)
Assignee | ||
Comment 7•8 years ago
|
||
I think using temporary variable is simpler now.
Attachment #8835007 -
Attachment is obsolete: true
Attachment #8836245 -
Attachment is obsolete: true
Attachment #8836245 -
Flags: review?(acelists)
Attachment #8836250 -
Flags: review?(acelists)
Comment 8•8 years ago
|
||
Thanks for the quick reaction and sorry about the rude backout ;-) I just thought another bug wasn't worth the hassle, and I wanted to get rid of the failure quickly.
Sure, sorry for the breakage. A doubly declared variable go hidden in the exotic syntax :)
I should have run the tests first.
Comment 10•8 years ago
|
||
Comment on attachment 8836250 [details] [diff] [review]
Remove remaining Iterator consumer from gloda. r=aceman, f=asuth
Review of attachment 8836250 [details] [diff] [review]:
-----------------------------------------------------------------
Try server is busted. This passed for me locally. Thanks for quick fix.
Attachment #8836250 -
Flags: review?(acelists) → review+
Comment 12•8 years ago
|
||
I'll land this after the next M-I to M-C merge. I always like to have a patch "in stock" to trigger a full build. Since it's the weekend, there are less merges, so it might have to wait a day or so.
Comment 13•8 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 8 years ago → 8 years ago
Resolution: --- → FIXED
Updated•8 years ago
|
Keywords: checkin-needed
You need to log in
before you can comment on or make changes to this bug.
Description
•