B2G/gecko/toolkit/mozapps/extensions/XPIProvider.jsm
/**
   * Called to get an AddonInstall to install an add-on from a local file.
   *
   * @param  aFile
   *         The file to be installed
   * @param  aCallback
   *         A callback to pass the AddonInstall to
   */
Called to get an AddonInstall to install an add-on from a local file.
@param  aFile
The file to be installed
@param  aCallback
A callback to pass the AddonInstall to
Called to get an AddonInstall to install an add - on from a local file . @param aFile The file to be installed @param aCallback A callback to pass the AddonInstall to
function XPI_getInstallForFile(aFile, aCallback) {
    AddonInstall.createInstall(function getInstallForFile_createInstall(aInstall) {
      if (aInstall)
        aCallback(aInstall.wrapper);
      else
        aCallback(null);
    }, aFile);
  }
function XPI_getInstallForFile ( aFile , aCallback ) { AddonInstall . createInstall ( function getInstallForFile_createInstall ( aInstall ) { if ( aInstall ) aCallback ( aInstall . wrapper ) ; else aCallback ( null ) ; } , aFile ) ; }
Called to get an AddonInstall to install an add-on from a local file.
Called to get an AddonInstall to install an add - on from a local file .