mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-30 14:17:36 -10:00
Unifies the methods we have to check that bootstrap add-ons are correctly loaded and makes it easier to make changes to them all in the future without needing to re-sign add-ons etc. This code allows a bootstrap script to use a shared script in a single line of code. The shared scripts sends out all the relevant info over the observer service, the add-ons manager test harness receives and retains the current state for every add-on also performing sanity checks like making sure an "install" method is always called before any "startup" method etc. It also provides simple functions to check the state of a given add-on.
2 lines
88 B
JavaScript
2 lines
88 B
JavaScript
Components.utils.import("resource://xpcshell-data/BootstrapMonitor.jsm").monitor(this);
|