gecko-dev/browser/components
Rob Wu 4a6f84f91d Bug 1544834 - Replace deprecated generics in test code r=evilpie
- `Array.map` becomes `Array.from`
- Array copying via `Array.slice` becomes `Array.from`.
- `Array.forEach` that did not rely on closures becomes `for`-`of` loops.
- Anything else: `Array.X` becomes `Array.prototype.X`.

Complex cases:

dom/bindings/test/TestInterfaceJS.js and
dom/bindings/test/test_exception_options_from_jsimplemented.html
use `Array.indexOf` to generate an error with a specific error message.
Switched to `Array.prototype.forEach` to generate the same error.

js/src/jit-test/tests/basic/exception-column-number.js
In this test `Array.indexOf()` is used to generate an error. Since the
exact message doesn't matter, I switched to `Array.from()`.

Intentionally not changed:

editor/libeditor/tests/browserscope/lib/richtext/richtext/js/range.js
Did not modify because this is 3rd-party code and the code uses
feature detection as a fall back when Array generics are not used.

testing/talos/talos/tests/dromaeo/lib/mootools.js
Did not modify because mootools adds the `Array.slice` method to the
`Array` object.

Not changed because they check the implementation of Array generics:
js/src/jit-test/tests/basic/arrayNatives.js
js/src/jit-test/tests/basic/bug563243.js
js/src/jit-test/tests/basic/bug618853.js
js/src/jit-test/tests/basic/bug830967.js
js/src/jit-test/tests/jaeger/recompile/bug656753.js
js/src/jit-test/tests/self-hosting/alternate-static-and-instance-array-extras.js
js/src/tests/non262/Array/generics.js
js/src/tests/non262/Array/regress-415540.js
js/src/tests/non262/extensions/regress-355497.js
js/src/tests/non262/extensions/typedarray-set-neutering.js

Depends on D27802

Differential Revision: https://phabricator.services.mozilla.com/D27803

--HG--
extra : moz-landing-system : lando
2019-04-17 19:03:19 +00:00
..
about Bug 1530348 - Unfork aboutNetError.{xhtml,css}. r=nhnt11 2019-03-29 09:33:58 +00:00
aboutconfig Bug 1544834 - Replace deprecated generics in test code r=evilpie 2019-04-17 19:03:19 +00:00
attribution Bug 1415265 - Remove now unnecessary .eslintrc.js files or entries. r=mossop 2019-03-28 09:38:14 +00:00
build Backed out 79 changesets (bug 1524687, bug 1524688) for crashes on mozilla::dom::ScreenOrientation::ScreenOrientation(nsPIDOMWindowInner *,nsScreen *). CLOSED TREE 2019-02-14 11:50:23 +02:00
contextualidentity contextualIdentity: add gray color and fence icon (Bug 1532746); r=jkt,flod 2019-04-17 16:43:30 +00:00
controlcenter/content Bug 1477673: Refactor PanelMultiView keyboard navigation to use a TreeWalker. r=Gijs,johannh 2019-04-15 01:38:08 +00:00
customizableui Bug 1544834 - Replace non-test uses of deprecated Array generics r=evilpie,dao 2019-04-17 19:03:17 +00:00
dirprovider Bug 1415265 - Remove now unnecessary .eslintrc.js files or entries. r=mossop 2019-03-28 09:38:14 +00:00
downloads Bug 1544834 - Replace non-test uses of deprecated Array generics r=evilpie,dao 2019-04-17 19:03:17 +00:00
enterprisepolicies Bug 1544114 - Make about:policies integrate better with dark mode support. r=dao 2019-04-17 09:18:15 +00:00
extensions Bug 1544834 - Replace deprecated generics in test code r=evilpie 2019-04-17 19:03:19 +00:00
library
migration Bug 1541804: Make profile refresh for non-ascii named profiles work correctly. r=Gijs 2019-04-04 21:53:01 +00:00
newtab Bug 1544887 - Fix some in-content page icon colors in dark mode. r=dao 2019-04-17 09:19:35 +00:00
originattributes Bug 1544322 - Part 2.1 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in everything except for dom/ r=bzbarsky 2019-04-16 03:50:44 +00:00
payments Bug 1544051 - Part 3 - Scripted change to remove references to AddTask.js r=ahal 2019-04-18 16:51:01 +00:00
places Bug 1544322 - Part 3 - Remove the [type] attribute for multiline <script> tags loading files in chrome://mochikit/content/ r=bzbarsky 2019-04-16 03:59:25 +00:00
pocket Bug 1524970: Update more frontend code to explicitly pass a csp. r=Gijs,jdescottes 2019-03-27 16:38:01 +00:00
preferences contextualIdentity: add gray color and fence icon (Bug 1532746); r=jkt,flod 2019-04-17 16:43:30 +00:00
privatebrowsing Bug 1415265 - Remove now unnecessary .eslintrc.js files or entries. r=mossop 2019-03-28 09:38:14 +00:00
protocolhandler Bug 1544322 - Part 2.1 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in everything except for dom/ r=bzbarsky 2019-04-16 03:50:44 +00:00
resistfingerprinting Bug 1544051 - Part 3 - Scripted change to remove references to AddTask.js r=ahal 2019-04-18 16:51:01 +00:00
safebrowsing/content/test Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
search Bug 1544834 - Replace deprecated generics in test code r=evilpie 2019-04-17 19:03:19 +00:00
sessionstore Bug 1544834 - Replace deprecated generics in test code r=evilpie 2019-04-17 19:03:19 +00:00
shell Bug 1544322 - Part 1 - Remove the [type] attribute for one-liner <script> tags loading files in chrome://mochikit/content/ r=bzbarsky 2019-04-15 20:56:58 +00:00
syncedtabs Bug 1523761 - Move the syncedTabs strings from browser.dtd to fluent, r=Gijs,flod 2019-03-28 00:07:48 +00:00
tests Bug 1496075 - Part 3: Use webextensions in SearchServices. r=mikedeboer,mixedpuppy 2019-04-11 20:49:31 +00:00
touchbar Bug 1543169 - Use nicer XPIDL arrays in nsITouchBarUpdater. r=spohl 2019-04-09 17:47:06 +00:00
translation Bug 1536170 - Replace Async.jankYielder r=tcsc,markh,eoger 2019-04-17 03:00:35 +00:00
uitour Bug 1518545 - Remove the superfluous 'engine-current' Search Service observer topic in favour of 'engine-default'. r=daleharvey 2019-04-17 09:45:24 +00:00
urlbar Bug 1534738 - Title and url in RTL mode are not properly overflowing in Quantum Bar. r=dao 2019-04-18 08:29:18 +00:00
.eslintrc.js
BrowserComponents.manifest Backed out 79 changesets (bug 1524687, bug 1524688) for crashes on mozilla::dom::ScreenOrientation::ScreenOrientation(nsPIDOMWindowInner *,nsScreen *). CLOSED TREE 2019-02-14 11:50:23 +02:00
BrowserContentHandler.jsm Bug 1494948: Removed FX_PREFERENCES_OPENED_VIA probe and origin parameter for openPreferences r=jaws,chutten 2019-04-09 20:40:26 +00:00
BrowserGlue.jsm Bug 1541798 - Fix broken default theme check for early blank window. r=dao 2019-04-16 15:38:52 +00:00
components.conf Backed out 79 changesets (bug 1524687, bug 1524688) for crashes on mozilla::dom::ScreenOrientation::ScreenOrientation(nsPIDOMWindowInner *,nsScreen *). CLOSED TREE 2019-02-14 11:50:23 +02:00
distribution.js Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
moz.build Bug 1529088 - Hold the HTML-based about:config to Nightly until we get Product sign-off. r=florian,paolo 2019-02-27 21:54:57 +00:00
nsIBrowserHandler.idl