rem: var outlinerView = gDBView.QueryInterface(Components.interfaces.nsIOutlinerView); var outlinerSelection = outlinerView.selection; var currentIndex = outlinerSelection.currentIndex;  var status = gDBView.navigateStatus(type);  var resultId = new Object; var resultIndex = new Object; var threadIndex = new Object;  gDBView.viewNavigate(type, resultId, resultIndex, threadIndex, true /* wrap */);   if ((resultId.value != -1) && (resultIndex.value != -1)) { outlinerSelection.select(resultIndex.value); EnsureRowInThreadOutlinerIsVisible(resultIndex.value); return; 
add: var succeeded = ScrollToMessage(type, startFromBeginning, true); if (!succeeded) { CrossFolderNavigation(type, true); 
context: function GoNextMessage(type, startFromBeginning){  try {    var outlinerView = gDBView.QueryInterface(Components.interfaces.nsIOutlinerView);    var outlinerSelection = outlinerView.selection;    var currentIndex = outlinerSelection.currentIndex;    var status = gDBView.navigateStatus(type);    var resultId = new Object;    var resultIndex = new Object;    var threadIndex = new Object;    gDBView.viewNavigate(type, resultId, resultIndex, threadIndex, true /* wrap */);    // only scroll and select if we found something    if ((resultId.value != -1) && (resultIndex.value != -1)) {        outlinerSelection.select(resultIndex.value);        EnsureRowInThreadOutlinerIsVisible(resultIndex.value);         return;    }        CrossFolderNavigation(type, true);  }  catch (ex) {    dump("GoNextMessage ex = " + ex + "\n");  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/2b7dd588b678abded0d9a1e901ca7e6ebf659f7a/msgViewNavigation.js/buggy/mailnews/base/resources/content/msgViewNavigation.js