B2G/gecko/toolkit/mozapps/extensions/XPIProvider.jsm
/**
   * Called to get an AddonInstall to download and install an add-on from a URL.
   *
   * @param  aUrl
   *         The URL to be installed
   * @param  aHash
   *         A hash for the install
   * @param  aName
   *         A name for the install
   * @param  aIcons
   *         Icon URLs for the install
   * @param  aVersion
   *         A version for the install
   * @param  aLoadGroup
   *         An nsILoadGroup to associate requests with
   * @param  aCallback
   *         A callback to pass the AddonInstall to
   */
Called to get an AddonInstall to download and install an add-on from a URL.
Called to get an AddonInstall to download and install an add - on from a URL .
function XPI_getInstallForURL(aUrl, aHash, aName, aIcons,
                                                  aVersion, aLoadGroup, aCallback) {
    AddonInstall.createDownload(function getInstallForURL_createDownload(aInstall) {
      aCallback(aInstall.wrapper);
    }, aUrl, aHash, aName, aIcons, aVersion, aLoadGroup);
  }
function XPI_getInstallForURL ( aUrl , aHash , aName , aIcons , aVersion , aLoadGroup , aCallback ) { AddonInstall . createDownload ( function getInstallForURL_createDownload ( aInstall ) { aCallback ( aInstall . wrapper ) ; } , aUrl , aHash , aName , aIcons , aVersion , aLoadGroup ) ; }
Called to get an AddonInstall to download and install an add-on from a URL.
Called to get an AddonInstall to download and install an add - on from a URL .