JavaScript warning: chrome://global/content/bindings/tabbox.xml, line 258: Array.indexOf is deprecated; use Array.prototype.indexOf instead
Categories
(Thunderbird :: Untriaged, defect)
Tracking
(Not tracked)
People
(Reporter: ishikawa, Unassigned)
Details
During the run of |make mozmill| test suite with FULL DEBUG version of TB, I saw
34 instances of warnings of the form:
JavaScript warning:
chrome://global/content/bindings/tabbox.xml, line 258: Array.indexOf is
deprecated; use Array.prototype.indexOf instead
I think how to fix this should be clear enough.
(+++ This bug was initially created as a clone of Bug #1542294 +++)
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.
*** This is the one I file now ***
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"
Reporter | ||
Updated•6 years ago
|
Updated•6 years ago
|
Comment 1•6 years ago
|
||
Will be fixed by bug 1540879 and bug 1544834
Description
•