rem: if (index < tabCount) tabPanels[index].loadURI(uri, null, nsIWebNavigation.LOAD_FLAGS_NONE); else gBrowser.addTab(uri); index++; 
add: gBrowser.addTab(uri); 
context: function OpenBookmarkGroupFromResource(resource, datasource, rdf) {  var urlResource = rdf.GetResource("http://home.netscape.com/NC-rdf#URL");  var rdfContainer = Components.classes["@mozilla.org/rdf/container;1"].getService(Components.interfaces.nsIRDFContainer);  rdfContainer.Init(datasource, resource);  var containerChildren = rdfContainer.GetElements();  var tabPanels = gBrowser.mPanelContainer.childNodes;  var tabCount = tabPanels.length;  var index = 0;  while (containerChildren.hasMoreElements()) {    var res = containerChildren.getNext().QueryInterface(Components.interfaces.nsIRDFResource);    var target = datasource.GetTarget(res, urlResource, true);    if (target) {      var uri = target.QueryInterface(Components.interfaces.nsIRDFLiteral).Value;      if (index < tabCount)        tabPanels[index].loadURI(uri, null, nsIWebNavigation.LOAD_FLAGS_NONE);      else        gBrowser.addTab(uri);      index++;    }  }      if (index == 0)    return; // If the bookmark group was completely invalid, just bail.       // Select the first tab in the group.  var tabs = gBrowser.mTabContainer.childNodes;  gBrowser.selectedTab = tabs[0];    // Close any remaining open tabs that are left over.  for (var i = tabCount-1; i >= index; i--)    gBrowser.removeTab(tabs[i]);}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/af22bbd97f6596e2cb202677bc227e68d7731522/navigator.js/buggy/xpfe/browser/resources/content/navigator.js