]> git.gir.st - VimFx.git/commit
move from deprecated Cu.import to ChromeUtils.import
authorgirst <girst@users.noreply.github.com>
Sat, 23 Apr 2022 11:58:43 +0000 (13:58 +0200)
committergirst <girst@users.noreply.github.com>
Mon, 2 May 2022 14:27:14 +0000 (16:27 +0200)
commit632e1258ee5ac853b54aa00e6b3004de278ab114
treee0b4ab4c26ccdde851fa81191747af31bc45a942
parentb6468f040ae83860663c671b4e416c5df142131d
move from deprecated Cu.import to ChromeUtils.import

In most cases, this was a drop-in replacement, but in bootstrap.coffee,
we used the side effect of polluting the global namespace as a handy way
to inject the `Services` object into the user's config.js file.

As a bonus, the codebase has been rid of an inconsistency between
Components.utils.import() and its shorthand Cu.import(), since both are
now gone. We also use the destructuring assignment consistently now.

Both config.js and frame.js were checked to still have the same exposed
API (mainly concerned with Services and console, since that was removed
from bootstrap.coffee).

see also: Bug 1765167
extension/bootstrap-frame.js.tmpl
extension/bootstrap.coffee
extension/lib/button.coffee
extension/lib/config.coffee
extension/lib/main.coffee
extension/lib/utils.coffee
extension/options.js
Imprint / Impressum