B2G/gecko/toolkit/mozapps/extensions/XPIProvider.jsm
/**
   * Returns a URI to the selected resource or to the add-on bundle if aPath
   * is null. URIs to the bundle will always be file: URIs. URIs to resources
   * will be file: URIs if the add-on is unpacked or jar: URIs if the add-on is
   * still an XPI file.
   *
   * @param  aPath
   *         The path in the add-on to get the URI for or null to get a URI to
   *         the file or directory the add-on is installed as.
   * @return an nsIURI
   */
Returns a URI to the selected resource or to the add-on bundle if aPath
is null. URIs to the bundle will always be file: URIs. URIs to resources
will be file: URIs if the add-on is unpacked or jar: URIs if the add-on is
still an XPI file.

@param  aPath
The path in the add-on to get the URI for or null to get a URI to
the file or directory the add-on is installed as.
@return an nsIURI
Returns a URI to the selected resource or to the add - on bundle if aPath is null . URIs to the bundle will always be file : URIs . URIs to resources will be file : URIs if the add - on is unpacked or jar : URIs if the add - on is still an XPI file . @param aPath The path in the add - on to get the URI for or null to get a URI to the file or directory the add - on is installed as . @return an nsIURI
function AddonWrapper_getResourceURI(aPath) {
    if (!aPath)
      return NetUtil.newURI(aAddon._sourceBundle);
    return getURIForResourceInFile(aAddon._sourceBundle, aPath);
  }
function AddonWrapper_getResourceURI ( aPath ) { if ( ! aPath ) return NetUtil . newURI ( aAddon . _sourceBundle ) ; return getURIForResourceInFile ( aAddon . _sourceBundle , aPath ) ; }
Returns a URI to the selected resource or to the add-on bundle if aPath
 is null.
Returns a URI to the selected resource or to the add - on bundle if aPath is null .