Closed
Bug 394167
Opened 17 years ago
Closed 7 years ago
Remove |nsISupportsArray| usage in mailnews
Categories
(MailNews Core :: Backend, defect)
MailNews Core
Backend
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 55.0
People
(Reporter: nick.kreeger, Assigned: aceman)
References
()
Details
(Keywords: meta)
Attachments
(2 files)
(deleted),
patch
|
jorgk-bmo
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
jorgk-bmo
:
review+
|
Details | Diff | Splinter Review |
Since the |nsISupportsArray| class is now obsolete, we should switch over and start using the |nsIArray| class.
Updated•17 years ago
|
OS: Mac OS X → All
Hardware: Macintosh → All
Updated•16 years ago
|
Product: Core → MailNews Core
Updated•12 years ago
|
Blocks: nuke-nsSupportsArray
Once the blocking bugs are done, we can remove the nsISupportsArray from iteratorUtils: base/util/iteratorUtils.jsm: * nsISupportsArray base/util/iteratorUtils.jsm: // Try an nsISupportsArray. base/util/iteratorUtils.jsm: if (aEnum instanceof Ci.nsISupportsArray) { base/util/iteratorUtils.jsm: if (aInterface.equals(Ci.nsISupportsArray)) { base/util/iteratorUtils.jsm: Deprecated.warning("nsISupportsArray object is deprecated, avoid creating new ones.", base/util/iteratorUtils.jsm: .createInstance(Ci.nsISupportsArray); base/test/unit/test_iteratorUtils.js: let nsISupportsArray = iteratorUtils.toXPCOMArray(nsIArray, Ci.nsISupportsArray); base/test/unit/test_iteratorUtils.js: do_check_eq(nsISupportsArray.Count(), 5); base/test/unit/test_iteratorUtils.js: for (let val in iteratorUtils.fixIterator(nsISupportsArray)) { This support was only kept for addon-compatibility but is no longer used in base TB. If m-c removes support for nsISupportsArray we have no choice than just to remove it from here too as the Ci.nsISupportsArray will probably throw.
Assignee: nobody → acelists
m-c has removed nsISupportsArray now so we must do this.
Attachment #8845188 -
Flags: review?(jorgk)
Comment 4•7 years ago
|
||
Comment on attachment 8845188 [details] [diff] [review] patch Fine by me upon visual inspection ;-)
Attachment #8845188 -
Flags: review?(jorgk) → review+
Comment 5•7 years ago
|
||
https://hg.mozilla.org/comm-central/rev/eadb929f668904e88c5dccfdb220b67f9256cc9c I guess we're done here.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 55.0
Sorry, missed nsIEnumerator going away too. We just mention it in a comment.
Attachment #8845271 -
Flags: review?(jorgk)
Comment 8•7 years ago
|
||
Comment on attachment 8845271 [details] [diff] [review] patch 2 Sure, thanks.
Attachment #8845271 -
Flags: review?(jorgk) → review+
Comment 9•7 years ago
|
||
https://hg.mozilla.org/comm-central/rev/eadb929f668904e88c5dccfdb220b67f9256cc9c (comment #5) https://hg.mozilla.org/comm-central/rev/64efa461aeb0ba7b5a460395d7dcbde56beeafdc
You need to log in
before you can comment on or make changes to this bug.
Description
•