B2G/gecko/toolkit/mozapps/extensions/XPIProviderUtils.js
/**
   * Gets the list of file descriptors of active extension directories or XPI
   * files from the add-ons list. This must be loaded from disk since the
   * directory service gives no easy way to get both directly. This list doesn't
   * include themes as preferences already say which theme is currently active
   *
   * @return an array of persisitent descriptors for the directories
   */
Gets the list of file descriptors of active extension directories or XPI
files from the add-ons list. This must be loaded from disk since the
directory service gives no easy way to get both directly. This list doesn't
include themes as preferences already say which theme is currently active

@return an array of persisitent descriptors for the directories
Gets the list of file descriptors of active extension directories or XPI files from the add - ons list . This must be loaded from disk since the directory service gives no easy way to get both directly . This list doesn ' t include themes as preferences already say which theme is currently active @return an array of persisitent descriptors for the directories
function XPIDB_getActiveBundles() {
    let bundles = [];
    let addonsList = FileUtils.getFile(KEY_PROFILEDIR, [FILE_XPI_ADDONS_LIST],
                                       true);
    if (!addonsList.exists())
      return null;
    try {
      let iniFactory = Cc["@mozilla.org/xpcom/ini-parser-factory;1"]
                         .getService(Ci.nsIINIParserFactory);
      let parser = iniFactory.createINIParser(addonsList);
      let keys = parser.getKeys("ExtensionDirs");
      while (keys.hasMore())
        bundles.push(parser.getString("ExtensionDirs", keys.getNext()));
    }
    catch (e) {
      WARN("Failed to parse extensions.ini", e);
      return null;
    }
    for (let id in XPIProvider.bootstrappedAddons)
      bundles.push(XPIProvider.bootstrappedAddons[id].descriptor);
    return bundles;
  }
function XPIDB_getActiveBundles ( ) { let bundles = [ ] ; let addonsList = FileUtils . getFile ( KEY_PROFILEDIR , [ FILE_XPI_ADDONS_LIST ] , true ) ; if ( ! addonsList . exists ( ) ) return null ; try { let iniFactory = Cc [ "@mozilla.org/xpcom/ini-parser-factory;1" ] . getService ( Ci . nsIINIParserFactory ) ; let parser = iniFactory . createINIParser ( addonsList ) ; let keys = parser . getKeys ( "ExtensionDirs" ) ; while ( keys . hasMore ( ) ) bundles . push ( parser . getString ( "ExtensionDirs" , keys . getNext ( ) ) ) ; } catch ( e ) { WARN ( "Failed to parse extensions.ini" , e ) ; return null ; } for ( let id in XPIProvider . bootstrappedAddons ) bundles . push ( XPIProvider . bootstrappedAddons [ id ] . descriptor ) ; return bundles ; }
Gets the list of file descriptors of active extension directories or XPI
 files from the add-ons list.
Gets the list of file descriptors of active extension directories or XPI files from the add - ons list .
// Also include the list of active bootstrapped extensions