rem: if (treeitem.getAttribute("container") == "true" || treeitem.getAttribute("type") == "http: return; }  var id = treeitem.id; 
add: var id = listitem.id; 
context: function sidebarOpenURL(treeitem){  if (treeitem.getAttribute("container") == "true" ||      treeitem.getAttribute("type") == "http://home.netscape.com/NC-rdf#BookmarkSeparator")   {    return;  }  var id = treeitem.id;  if (!id)    return;  // rjc: add support for anonymous resources; if the node has  // a "#URL" property, use it, otherwise default to using the id  try {    var ds = document.getElementById("Tree").database;    if (ds) {      var rdf = Components.classes[RDFSERVICE_CONTRACTID].getService(nsIRDFService);      var src = rdf.GetResource(id, true);      var prop = rdf.GetResource("http://home.netscape.com/NC-rdf#URL", true);      var target = ds.GetTarget(src, prop, true);      if (target) {        target = target.QueryInterface(nsIRDFLiteral).Value;        if (target)          id = target;      }    }  } catch (ex) {  }  // mark result as visited  treeitem.firstChild.firstChild.setAttribute("visited", "true");    loadURLInContent(id);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/d38a0937d9c93a0a9d913e2ac781e4328bb8cc73/search-panel.js/buggy/xpfe/components/search/resources/search-panel.js