don't use legacy .Count() on nsIArray in c-c

ASSIGNED
Assigned to

Status

MailNews Core
Filters
--
trivial
ASSIGNED
7 months ago
7 months ago

People

(Reporter: aceman, Assigned: aceman)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(1 attachment)

1.63 KB, patch
aceman
: review?
Philip Chee
Details | Diff | Splinter Review
(Assignee)

Description

7 months ago
.Count() on nsIArray is defined in https://dxr.mozilla.org/comm-central/source/mozilla/xpcom/ds/nsIArrayExtensions.idl as some temporary compatibility for callers assuming/migrating from nsISupportsArray. Now that nsISupportsArray is gone, these extensions may be also endangered (unneeded).

So convert the few uses before the support goes away and we do not notice it in JS.
(Assignee)

Comment 1

7 months ago
Created attachment 8849365 [details] [diff] [review]
patch
Attachment #8849365 - Flags: review?(philip.chee)
You need to log in before you can comment on or make changes to this bug.