gecko-dev/browser/base/content/test/favicons
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
accept.html Bug 1516658: Favicon requests should use an accept header appropriate for images. r=Gijs 2019-01-07 17:43:23 +00:00
accept.sjs Bug 1516658: Favicon requests should use an accept header appropriate for images. r=Gijs 2019-01-07 17:43:23 +00:00
auth_test.html Bug 1517029: Fail favicon requests when encountering an icon that requires credentials. r=Gijs 2019-01-07 17:57:46 +00:00
auth_test.png Bug 1517029: Fail favicon requests when encountering an icon that requires credentials. r=Gijs 2019-01-07 17:57:46 +00:00
auth_test.png^headers^ Bug 1517029: Fail favicon requests when encountering an icon that requires credentials. r=Gijs 2019-01-07 17:57:46 +00:00
blank.html
browser_bug408415.js
browser_bug550565.js
browser_favicon_accept.js Bug 1516658: Favicon requests should use an accept header appropriate for images. r=Gijs 2019-01-07 17:43:23 +00:00
browser_favicon_auth.js Bug 1517029: Fail favicon requests when encountering an icon that requires credentials. r=Gijs 2019-01-07 17:57:46 +00:00
browser_favicon_cache.js Bug 1503696: Cache cookies in the same way we did before Firefox 63. r=mak 2018-11-15 20:46:32 +00:00
browser_favicon_change_not_in_document.js Bug 1485305 - browser/ tests Ensure loadURI always passes a triggeringPrincipal() r=Mossop 2018-08-29 15:44:56 +01:00
browser_favicon_change.js Bug 1485305 - browser/ tests Ensure loadURI always passes a triggeringPrincipal() r=Mossop 2018-08-29 15:44:56 +01:00
browser_favicon_load.js Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
browser_icon_discovery.js Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
browser_invalid_href_fallback.js Bug 1486226 - Correctly handle empty (invalid) href attributes in <link> elements (e.g. favicons). r=mak 2018-08-30 08:35:51 +00:00
browser_missing_favicon.js
browser_mixed_content.js
browser_multiple_icons_in_short_timeframe.js
browser_oversized.js Bug 1511465: Fix race condition in browser_oversized.js. r=mak 2018-12-05 19:03:36 +00:00
browser_preferred_icons.js Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
browser_redirect.js
browser_rich_icons.js
browser_rooticon.js
browser_subframe_favicons_not_used.js
browser_title_flicker.js Bug 1487650: Don't show a space for a pending favicon in pinned tabs. r=dao 2018-08-31 22:20:39 +00:00
browser.ini Bug 1517029: Fail favicon requests when encountering an icon that requires credentials. r=Gijs 2019-01-07 17:57:46 +00:00
cookie_favicon.html Bug 1503696: Cache cookies in the same way we did before Firefox 63. r=mak 2018-11-15 20:46:32 +00:00
cookie_favicon.sjs Bug 1503696: Cache cookies in the same way we did before Firefox 63. r=mak 2018-11-15 20:46:32 +00:00
discovery.html
file_bug970276_favicon1.ico
file_bug970276_favicon2.ico
file_bug970276_popup1.html
file_bug970276_popup2.html
file_favicon_change_not_in_document.html
file_favicon_change.html
file_favicon_redirect.html
file_favicon_redirect.ico
file_favicon_redirect.ico^headers^
file_favicon_thirdParty.html
file_favicon.html
file_favicon.png
file_favicon.png^headers^
file_generic_favicon.ico
file_insecure_favicon.html
file_invalid_href.html Bug 1486226 - Correctly handle empty (invalid) href attributes in <link> elements (e.g. favicons). r=mak 2018-08-30 08:35:51 +00:00
file_mask_icon.html
file_rich_icon.html
file_with_favicon.html
file_with_slow_favicon.html Bug 1473514: Display an empty space for the tab icon while waiting for the real favicon to appear. r=dao 2018-08-29 18:27:36 +00:00
head.js Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
icon.svg
large_favicon.html Bug 1504470: Drop favicons above 2048x2048. r=mak 2018-11-28 13:38:42 -08:00
large.png Bug 1504470: Drop favicons above 2048x2048. r=mak 2018-11-28 13:38:42 -08:00
moz.png
rich_moz_1.png
rich_moz_2.png