Closed Bug 1542294 Opened 5 years ago Closed 5 years ago

JavaScript warning: chrome://global/content/elements/tree.js, line 500: Array.forEach is deprecated; use Array.prototype.forEach instead

Categories

(Thunderbird :: Untriaged, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1544834

People

(Reporter: ishikawa, Unassigned)

Details

During the run of |make mozmill| test suite with FULL DEBUG version of TB, I saw
347 instances of warnings of the form:

JavaScript warning: chrome://global/content/elements/tree.js,

line 500: Array.forEach is deprecated; use Array.prototype.forEach instead

I think how to fix this should be clear enough.

I noticed a similar problem mentioned for Firefox.

Bug 1540879
JavaScript warning: chrome://global/content/bindings/tabbox.xml, line 162: Array.forEach is deprecated; use Array.prototype.forEach instead

This warning was also produced 69 times during |make mozmill| run. But that will be taken care of in Bug 1540879.

I saw other similar problems related to the deprecated Array-related methods.
I will file them one by one:
e.g.
34 JavaScript warning:
chrome://global/content/bindings/tabbox.xml, line 258: Array.indexOf is
deprecated; use Array.prototype.indexOf instead
3 JavaScript warning:
chrome://global/content/bindings/scrollbox.xml, line 340: Array.filter
is deprecated; use Array.prototype.filter instead
2 JavaScript warning:
chrome://mozapps/content/extensions/extensions.js, line 1818:
Array.slice is deprecated; use Array.prototype.slice instead

1 JavaScript warning: resource://gre/modules/DownloadList.jsm,
line 42: Array.slice is deprecated; use Array.prototype.slice instead

The following one is strange.

1 JavaScript error: resource://gre/modules/XPCOMUtils.jsm, line
316: TypeError: can't redefine non-configurable property "Deprecated"

Blocks: 1542295
Regressions: 1542295
Blocks: 1542296
Regressions: 1542296
Blocks: 1542300
Regressions: 1542300
Blocks: 1542301
Regressions: 1542301

Will be fixed by bug 1544834.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
No longer blocks: 1542295, 1542296, 1542300, 1542301
No longer regressions: 1542295, 1542296, 1542300, 1542301
You need to log in before you can comment on or make changes to this bug.