B2G/gecko/browser/components/places/src/PlacesUIUtils.jsm
/**
   * If an item is a left-pane query, returns the name of the query
   * or an empty string if not.
   *
   * @param aItemId id of a container
   * @returns the name of the query, or empty string if not a left-pane query
   */
If an item is a left-pane query, returns the name of the query
or an empty string if not.

@param aItemId id of a container
@returns the name of the query, or empty string if not a left-pane query
If an item is a left - pane query returns the name of the query or an empty string if not . @param aItemId id of a container @returns the name of the query or empty string if not a left - pane query
function PUIU_getLeftPaneQueryNameFromId(aItemId) {
    var queryName = "";
    if (Object.getOwnPropertyDescriptor(this, "leftPaneFolderId").value === undefined) {
      try {
        queryName = PlacesUtils.annotations.
                                getItemAnnotation(aItemId, this.ORGANIZER_QUERY_ANNO);
      }
      catch (ex) {
        queryName = "";
      }
    }
    else {
      for (let [name, id] in Iterator(this.leftPaneQueries)) {
        if (aItemId == id)
          queryName = name;
      }
    }
    return queryName;
  }
function PUIU_getLeftPaneQueryNameFromId ( aItemId ) { var queryName = "" ; if ( Object . getOwnPropertyDescriptor ( this , "leftPaneFolderId" ) . value === undefined ) { try { queryName = PlacesUtils . annotations . getItemAnnotation ( aItemId , this . ORGANIZER_QUERY_ANNO ) ; } catch ( ex ) { queryName = "" ; } } else { for ( let [ name , id ] in Iterator ( this . leftPaneQueries ) ) { if ( aItemId == id ) queryName = name ; } } return queryName ; }
If an item is a left-pane query, returns the name of the query
 or an empty string if not.
If an item is a left - pane query returns the name of the query or an empty string if not .
// If the let pane hasn't been built, use the annotation service // directly, to avoid building the left pane too early. // doesn't have the annotation // If the left pane has already been built, use the name->id map // cached in PlacesUIUtils.