rem: for (; containerChildren.hasMoreElements(); ++index) { var res = containerChildren.getNext().QueryInterface(Components.interfaces.nsIRDFResource); var target = datasource.GetTarget(res, urlResource, true); 
add: while (containerChildren.hasMoreElements()) { var resource = containerChildren.getNext().QueryInterface(Components.interfaces.nsIRDFResource); var target = datasource.GetTarget(resource, urlResource, true); 
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;  for (; containerChildren.hasMoreElements(); ++index) {    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;      gBrowser.addTab(uri);    }  }      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[tabCount];}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/97522f24d62796ae4e1427d81c6e0f0d1ac11645/browser.js/buggy/browser/base/content/browser.js