B2G/gecko/toolkit/mozapps/extensions/XPIProvider.jsm
/**
   * Initialises this install to be a staged install waiting to be applied
   *
   * @param  aManifest
   *         The cached manifest for the staged install
   */
Initialises this install to be a staged install waiting to be applied
@param  aManifest
The cached manifest for the staged install
Initialises this install to be a staged install waiting to be applied @param aManifest The cached manifest for the staged install
function AI_initStagedInstall(aManifest) {
    this.name = aManifest.name;
    this.type = aManifest.type;
    this.version = aManifest.version;
    this.icons = aManifest.icons;
    this.releaseNotesURI = aManifest.releaseNotesURI ?
                           NetUtil.newURI(aManifest.releaseNotesURI) :
                           null
    this.sourceURI = aManifest.sourceURI ?
                     NetUtil.newURI(aManifest.sourceURI) :
                     null;
    this.file = null;
    this.addon = aManifest;
    this.state = AddonManager.STATE_INSTALLED;
    XPIProvider.installs.push(this);
  }
function AI_initStagedInstall ( aManifest ) { this . name = aManifest . name ; this . type = aManifest . type ; this . version = aManifest . version ; this . icons = aManifest . icons ; this . releaseNotesURI = aManifest . releaseNotesURI ? NetUtil . newURI ( aManifest . releaseNotesURI ) : null this . sourceURI = aManifest . sourceURI ? NetUtil . newURI ( aManifest . sourceURI ) : null ; this . file = null ; this . addon = aManifest ; this . state = AddonManager . STATE_INSTALLED ; XPIProvider . installs . push ( this ) ; }
Initialises this install to be a staged install waiting to be applied
 @param  aManifest
         The cached manifest for the staged install
Initialises this install to be a staged install waiting to be applied @param aManifest The cached manifest for the staged install