fune/browser/base/content/test/siteIdentity
Kris Maglione e930b89c34 Bug 1514594: Part 3 - Change ChromeUtils.import API.
***
Bug 1514594: Part 3a - Change ChromeUtils.import to return an exports object; not pollute global. r=mccr8

This changes the behavior of ChromeUtils.import() to return an exports object,
rather than a module global, in all cases except when `null` is passed as a
second argument, and changes the default behavior not to pollute the global
scope with the module's exports. Thus, the following code written for the old
model:

  ChromeUtils.import("resource://gre/modules/Services.jsm");

is approximately the same as the following, in the new model:

  var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");

Since the two behaviors are mutually incompatible, this patch will land with a
scripted rewrite to update all existing callers to use the new model rather
than the old.
***
Bug 1514594: Part 3b - Mass rewrite all JS code to use the new ChromeUtils.import API. rs=Gijs

This was done using the followng script:

https://bitbucket.org/kmaglione/m-c-rewrites/src/tip/processors/cu-import-exports.jsm
***
Bug 1514594: Part 3c - Update ESLint plugin for ChromeUtils.import API changes. r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D16747
***
Bug 1514594: Part 3d - Remove/fix hundreds of duplicate imports from sync tests. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16748
***
Bug 1514594: Part 3e - Remove no-op ChromeUtils.import() calls. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16749
***
Bug 1514594: Part 3f.1 - Cleanup various test corner cases after mass rewrite. r=Gijs
***
Bug 1514594: Part 3f.2 - Cleanup various non-test corner cases after mass rewrite. r=Gijs

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

--HG--
extra : rebase_source : 359574ee3064c90f33bf36c2ebe3159a24cc8895
extra : histedit_source : b93c8f42808b1599f9122d7842d2c0b3e656a594%2C64a3a4e3359dc889e2ab2b49461bab9e27fc10a7
2019-01-17 10:18:31 -08:00
..
.eslintrc.js
browser.ini bug 1497555 - filter out same-document location changes in nsSecureBrowserUIImpl::OnLocationChange r=Ehsan 2018-10-17 21:38:24 +00:00
browser_bug822367.js Bug 1435733 - Upgrade mixed display content pref. r=baku,ckerschb,francois,mayhemer 2018-02-05 15:37:27 +00:00
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 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +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
browser_identityPopup_clearSiteData.js Bug 1484251 - Part 4 - Test updates for new content blocking telemetry. r=Gijs 2018-10-11 11:25:57 +00:00
browser_identityPopup_focus.js Bug 1454866 part 2: Make the buttons in the Site Security panel keyboard navigable. r=johannh 2018-04-23 10:42:06 +10: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 1503393 - adjust tests for localhost proxying r=mayhemer 2018-12-03 16:28:14 +02: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_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 Bug 1435733 - Upgrade mixed display content pref. r=baku,ckerschb,francois,mayhemer 2018-02-05 15:37:27 +00:00
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
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.js
file_bug902156_1.html
file_bug902156_2.html
file_bug902156_3.html
file_bug906190.js
file_bug906190.sjs
file_bug906190_1.html
file_bug906190_2.html
file_bug906190_3_4.html
file_bug906190_redirected.html
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.html
file_mixedContentFromOnunload_test1.html
file_mixedContentFromOnunload_test2.html
file_mixedPassiveContent.html
head.js Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08: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-mixedcontent-securityerrors.html
test_mcb_double_redirect_image.html
test_mcb_redirect.html
test_mcb_redirect.js
test_mcb_redirect.sjs
test_mcb_redirect_image.html
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_font.css
test_no_mcb_on_http_site_font.html Bug 1446940 part 2. Stop getting docshells from windows via getInterface in browser. r=gijs 2018-08-01 13:07:10 -04:00
test_no_mcb_on_http_site_font2.css
test_no_mcb_on_http_site_font2.html Bug 1446940 part 2. Stop getting docshells from windows via getInterface in browser. r=gijs 2018-08-01 13:07:10 -04:00
test_no_mcb_on_http_site_img.css
test_no_mcb_on_http_site_img.html Bug 1446940 part 2. Stop getting docshells from windows via getInterface in browser. r=gijs 2018-08-01 13:07:10 -04:00