rem: var searchResultsForSession = this.searchResults[sessionIndex]; 
add: searchResultsForSession = this.searchResults[sessionIndex]; 
context:   processAllResults: function()  {    // Take the first result and add it to the compose window    var addressToAdd;    // loop through the results looking for the non default case (default case is the address book with only one match, the default domain)    var sessionIndex;     for (sessionIndex in this.searchResults)    {      var searchResultsForSession = this.searchResults[sessionIndex];      if (searchResultsForSession && searchResultsForSession.defaultItemIndex > -1)      {        addressToAdd = searchResultsForSession.items.QueryElementAt(searchResultsForSession.defaultItemIndex, Components.interfaces.nsIAutoCompleteItem).value;        break;      }    }    // still no match? loop through looking for the -1 default index    if (!addressToAdd)    {      for (sessionIndex in this.searchResults)      {        var searchResultsForSession = this.searchResults[sessionIndex];        if (searchResultsForSession && searchResultsForSession.defaultItemIndex == -1)        {          addressToAdd = searchResultsForSession.items.QueryElementAt(0, Components.interfaces.nsIAutoCompleteItem).value;          break;        }      }    }    // no matches anywhere...just use what we were given    if (!addressToAdd)      addressToAdd = this.namesToComplete[this.indexIntoNames];    // that will automatically set the focus on a new available row, and make sure it is visible    awAddRecipient(this.recipientType ? this.recipientType : "addr_to", addressToAdd);          this.indexIntoNames++;    this.autoCompleteNextAddress();  },
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/437d5ec47b69a37d43bcc1b720809b7d12ccf794/addressingWidgetOverlay.js/buggy/mailnews/compose/resources/content/addressingWidgetOverlay.js