mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 16:55:40 +00:00
e930b89c34
*** 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 |
||
---|---|---|
.. | ||
.eslintrc.js | ||
accept.html | ||
accept.sjs | ||
auth_test.html | ||
auth_test.png | ||
auth_test.png^headers^ | ||
blank.html | ||
browser_bug408415.js | ||
browser_bug550565.js | ||
browser_favicon_accept.js | ||
browser_favicon_auth.js | ||
browser_favicon_cache.js | ||
browser_favicon_change_not_in_document.js | ||
browser_favicon_change.js | ||
browser_favicon_load.js | ||
browser_icon_discovery.js | ||
browser_invalid_href_fallback.js | ||
browser_missing_favicon.js | ||
browser_mixed_content.js | ||
browser_multiple_icons_in_short_timeframe.js | ||
browser_oversized.js | ||
browser_preferred_icons.js | ||
browser_redirect.js | ||
browser_rich_icons.js | ||
browser_rooticon.js | ||
browser_subframe_favicons_not_used.js | ||
browser_title_flicker.js | ||
browser.ini | ||
cookie_favicon.html | ||
cookie_favicon.sjs | ||
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 | ||
file_mask_icon.html | ||
file_rich_icon.html | ||
file_with_favicon.html | ||
file_with_slow_favicon.html | ||
head.js | ||
icon.svg | ||
large_favicon.html | ||
large.png | ||
moz.png | ||
rich_moz_1.png | ||
rich_moz_2.png |