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 Bug 1483910: Clear seenTabIcon on pagehide so subsequent loads attempt to load the root favicon. r=kmag 2018-08-16 17:29:57 +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
browser_bug408415.js Bug 1453751: Load favicons in the content process. r=mak, r=gijs, r=aswan, r=mixedpuppy 2018-06-28 16:06:09 -07:00
browser_bug550565.js Bug 1453751: Load favicons in the content process. r=mak, r=gijs, r=aswan, r=mixedpuppy 2018-06-28 16:06:09 -07:00
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.js Bug 1485305 - browser/ tests Ensure loadURI always passes a triggeringPrincipal() r=Mossop 2018-08-29 15:44:56 +01: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_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 Bug 1478823: Start loading the default favicon as soon as the head element is complete. r=mak 2018-08-07 12:42:15 +00:00
browser_mixed_content.js Bug 1484753: Loading an insecure favicon should make the page show as mixed content. r=johannh 2018-08-21 10:40:42 -07:00
browser_multiple_icons_in_short_timeframe.js Bug 1453751: Load favicons in the content process. r=mak, r=gijs, r=aswan, r=mixedpuppy 2018-06-28 16:06:09 -07:00
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 Bug 1472477: Follow redirects when loading favicons. r=mak 2018-07-02 13:44:47 +00:00
browser_rich_icons.js Bug 1453751: Load favicons in the content process. r=mak, r=gijs, r=aswan, r=mixedpuppy 2018-06-28 16:06:09 -07:00
browser_rooticon.js Bug 1483910: Clear seenTabIcon on pagehide so subsequent loads attempt to load the root favicon. r=kmag 2018-08-16 17:29:57 +00:00
browser_subframe_favicons_not_used.js Bug 1453751: Load favicons in the content process. r=mak, r=gijs, r=aswan, r=mixedpuppy 2018-06-28 16:06:09 -07:00
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
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 Bug 1453751: Load favicons in the content process. r=mak, r=gijs, r=aswan, r=mixedpuppy 2018-06-28 16:06:09 -07:00
file_bug970276_favicon1.ico Bug 1453751: Load favicons in the content process. r=mak, r=gijs, r=aswan, r=mixedpuppy 2018-06-28 16:06:09 -07:00
file_bug970276_favicon2.ico Bug 1453751: Load favicons in the content process. r=mak, r=gijs, r=aswan, r=mixedpuppy 2018-06-28 16:06:09 -07:00
file_bug970276_popup1.html Bug 1453751: Load favicons in the content process. r=mak, r=gijs, r=aswan, r=mixedpuppy 2018-06-28 16:06:09 -07:00
file_bug970276_popup2.html Bug 1453751: Load favicons in the content process. r=mak, r=gijs, r=aswan, r=mixedpuppy 2018-06-28 16:06:09 -07:00
file_favicon.html Bug 1419346 - Move browser_favicon_load.js to favicon folder, r=florian 2017-12-07 10:40:56 +08:00
file_favicon.png Bug 1419346 - Move browser_favicon_load.js to favicon folder, r=florian 2017-12-07 10:40:56 +08:00
file_favicon.png^headers^ Bug 1419346 - Move browser_favicon_load.js to favicon folder, r=florian 2017-12-07 10:40:56 +08:00
file_favicon_change.html Bug 1453751: Load favicons in the content process. r=mak, r=gijs, r=aswan, r=mixedpuppy 2018-06-28 16:06:09 -07:00
file_favicon_change_not_in_document.html Bug 1453751: Load favicons in the content process. r=mak, r=gijs, r=aswan, r=mixedpuppy 2018-06-28 16:06:09 -07:00
file_favicon_redirect.html Bug 1472477: Follow redirects when loading favicons. r=mak 2018-07-02 13:44:47 +00:00
file_favicon_redirect.ico Bug 1472477: Follow redirects when loading favicons. r=mak 2018-07-02 13:44:47 +00:00
file_favicon_redirect.ico^headers^ Bug 1472477: Follow redirects when loading favicons. r=mak 2018-07-02 13:44:47 +00:00
file_favicon_thirdParty.html Bug 1419346 - Move browser_favicon_load.js to favicon folder, r=florian 2017-12-07 10:40:56 +08:00
file_generic_favicon.ico Bug 1453751: Load favicons in the content process. r=mak, r=gijs, r=aswan, r=mixedpuppy 2018-06-28 16:06:09 -07:00
file_insecure_favicon.html Bug 1484753: Loading an insecure favicon should make the page show as mixed content. r=johannh 2018-08-21 10:40:42 -07:00
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 Bug 1453751: Load favicons in the content process. r=mak, r=gijs, r=aswan, r=mixedpuppy 2018-06-28 16:06:09 -07:00
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 Bug 1453751: Load favicons in the content process. r=mak, r=gijs, r=aswan, r=mixedpuppy 2018-06-28 16:06:09 -07:00
large.png Bug 1504470: Drop favicons above 2048x2048. r=mak 2018-11-28 13:38:42 -08:00
large_favicon.html 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