Closed Bug 394167 Opened 17 years ago Closed 7 years ago

Remove |nsISupportsArray| usage in mailnews

Categories

(MailNews Core :: Backend, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 55.0

People

(Reporter: nick.kreeger, Assigned: aceman)

References

()

Details

(Keywords: meta)

Attachments

(2 files)

Since the |nsISupportsArray| class is now obsolete, we should switch over and start using the |nsIArray| class.
OS: Mac OS X → All
Hardware: Macintosh → All
Depends on: 397533
Depends on: 403894
Depends on: 404492
Depends on: 406198
Depends on: 407956
Depends on: 408713
Depends on: 408731
Depends on: 410177
Depends on: 413230
Depends on: 419038
Depends on: 420454
Depends on: 420616
Blocks: 420769
Blocks: 407295
Depends on: 434493
Depends on: 435290
Depends on: 436086
Depends on: 436089
Product: Core → MailNews Core
Depends on: 453706
Depends on: 454103
Depends on: 476628
Keywords: meta
Depends on: 820377
Depends on: 821236
Depends on: 821253
Depends on: 821743
Depends on: 822131
Depends on: 831993
Depends on: 833949
Depends on: 833988
Blocks: 834020
No longer blocks: 834020
Blocks: 834911
No longer blocks: 834911
Depends on: 838805
Depends on: 840230
Depends on: 437711
Depends on: 856478
Depends on: 857230
Depends on: 945045
Depends on: 1272872
Depends on: 1272893
Depends on: 1273001
Depends on: 1304802
Depends on: 1317871
Depends on: 1318185
No longer depends on: 437711
Depends on: 1318806
Depends on: 1320453
Depends on: 1326494
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
Attached patch patch (deleted) — Splinter Review
m-c has removed nsISupportsArray now so we must do this.
Attachment #8845188 - Flags: review?(jorgk)
No longer blocks: 420769
Depends on: 420769
Comment on attachment 8845188 [details] [diff] [review]
patch

Fine by me upon visual inspection ;-)
Attachment #8845188 - Flags: review?(jorgk) → review+
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
Thanks.
Attached patch patch 2 (deleted) — Splinter Review
Sorry, missed nsIEnumerator going away too. We just mention it in a comment.
Attachment #8845271 - Flags: review?(jorgk)
Comment on attachment 8845271 [details] [diff] [review]
patch 2

Sure, thanks.
Attachment #8845271 - Flags: review?(jorgk) → review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: