gecko-dev/browser/base/content/test/siteIdentity
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
..
.eslintrc.js
browser_bug822367.js
browser_bug902156.js
browser_bug906190.js Bug 1492482 - Remove CPOW usage from browser_Bug 1492482.js r=johannh 2018-10-02 17:56:03 +00:00
browser_bug1045809.js
browser_check_identity_state.js Bug 1511834 - Improving site Information header in reader mode r=johannh 2019-03-07 12:36:51 +00:00
browser_csp_block_all_mixedcontent.js Bug 1438402 - Fix intermittent browser_csp_block_all_mixedcontent.js. r=nhnt11 2018-09-10 13:53:19 +00:00
browser_identity_UI.js Bug 1476220 - Show a "site information" header in the identity popup. r=paolo 2018-10-09 13:47:13 +00:00
browser_identityBlock_focus.js Bug 1536073 - Remove DevTools button in browser_identityBlock_focus.js to prevent branch-specific focus in toolbar r=Gijs 2019-03-18 14:37:04 +00:00
browser_identityPopup_clearSiteData.js Bug 1529696 - Rename DATASET_RELEASE_CHANNEL_OPTOUT/OPTIN to DATASET_ALL/PRERELEASE_CHANNELS everywhere r=chutten 2019-04-03 17:12:11 +00:00
browser_identityPopup_focus.js Bug 1506510 - add keyboard focus styling for toolbar/urlbar buttons. r=dao 2019-03-15 04:35:09 +00:00
browser_iframe_navigation.js bug 1492424 - check if the TLS handshake failed in nsSecureBrowserUIImpl r=Gijs 2018-09-21 00:17:47 +00:00
browser_ignore_same_page_navigation.js Bug 1511303 - Ensure that visiting a page with an iframe does not cause an entry to be injected in the Cookies subpanel in the Control Centre; r=baku 2018-12-18 23:20:30 +00:00
browser_insecureLoginForms.js Bug 1544834 - Replace deprecated generics in test code r=evilpie 2019-04-17 19:03:19 +00:00
browser_mcb_redirect.js Bug 1376771 - Fix intermittent browser_mcb_redirect.js. r=nhnt11 2018-09-10 13:52:49 +00:00
browser_mixed_content_cert_override.js Bug 1442465 - Part 4.2: Stop unnecessarily awaiting on BrowserTestUtils.removeTab (simple part). r=dao 2018-03-19 11:16:45 +09:00
browser_mixed_content_with_navigation.js bug 1535851 - proactively check for mixed content in nsSecureBrowserUIImpl r=Ehsan 2019-03-19 23:56:55 +00:00
browser_mixed_passive_content_indicator.js Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
browser_mixedcontent_securityflags.js
browser_mixedContentFramesOnHttp.js Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
browser_mixedContentFromOnunload.js Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
browser_navigation_failures.js bug 1391207 - error pages are always not secure r=Gijs 2018-10-15 19:34:14 +00:00
browser_no_mcb_for_loopback.js Bug 1440073 - Clear images from cache to fix --verify testing of browser_no_mcb_for_loopback.js r=johannh 2018-02-22 14:07:44 +00:00
browser_no_mcb_for_onions.js Bug 1442406 - Fix intermittent test failure of browser_no_mcb_for_onions.js test. r=ckerschb 2018-03-27 18:32:55 +02:00
browser_no_mcb_on_http_site.js Bug 1442465 - Part 4.2: Stop unnecessarily awaiting on BrowserTestUtils.removeTab (simple part). r=dao 2018-03-19 11:16:45 +09:00
browser_secure_transport_insecure_scheme.js Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
browser.ini bug 1535851 - proactively check for mixed content in nsSecureBrowserUIImpl r=Ehsan 2019-03-19 23:56:55 +00:00
dummy_page.html
file_bug822367_1.html
file_bug822367_1.js
file_bug822367_2.html
file_bug822367_3.html
file_bug822367_4.html
file_bug822367_4.js
file_bug822367_4B.html
file_bug822367_5.html
file_bug822367_6.html
file_bug902156_1.html
file_bug902156_2.html
file_bug902156_3.html
file_bug902156.js
file_bug906190_1.html
file_bug906190_2.html
file_bug906190_3_4.html
file_bug906190_redirected.html
file_bug906190.js
file_bug906190.sjs
file_bug1045809_1.html
file_bug1045809_2.html
file_csp_block_all_mixedcontent.html
file_csp_block_all_mixedcontent.js
file_mixedContentFramesOnHttp.html
file_mixedContentFromOnunload_test1.html
file_mixedContentFromOnunload_test2.html
file_mixedContentFromOnunload.html
file_mixedPassiveContent.html
head.js Bug 1544834 - Replace deprecated generics in test code r=evilpie 2019-04-17 19:03:19 +00:00
iframe_navigation.html bug 1490982 - filter out OnLocationChange events that aren't top-level in nsSecureBrowserUIImpl r=Gijs 2018-09-19 19:57:37 +00:00
insecure_opener.html
simple_mixed_passive.html
test_mcb_double_redirect_image.html
test_mcb_redirect_image.html
test_mcb_redirect.html
test_mcb_redirect.js
test_mcb_redirect.sjs
test_no_mcb_for_loopback.html
test_no_mcb_for_onions.html Tests updated/added for bug 1382359 r=ckerschb CLOSED TREE 2018-03-01 10:13:22 +01:00
test_no_mcb_on_http_site_font2.css
test_no_mcb_on_http_site_font2.html 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
test_no_mcb_on_http_site_font.css
test_no_mcb_on_http_site_font.html 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
test_no_mcb_on_http_site_img.css
test_no_mcb_on_http_site_img.html 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
test-mixedcontent-securityerrors.html