rem: var ind = bookmarkView.outlinerBuilder.getIndexOfResource(folder); 
add: var ind = bookmarkView.treeBuilder.getIndexOfResource(folder); 
context: function useDefaultFolder (){  const kBMDS = kRDF.GetDataSource("rdf:bookmarks");  var bookmarkView = document.getElementById("bookmarks-view");  var sources = kBMDS.GetSources(bookmarkView.rdf.GetResource(NC_NS + "FolderType"), bookmarkView.rdf.GetResource("NC:NewBookmarkFolder"), true);  var folder = null;  if (sources.hasMoreElements()) {    folder = sources.getNext().QueryInterface(Components.interfaces.nsIRDFResource);  }  var ind = bookmarkView.outlinerBuilder.getIndexOfResource(folder);  if (ind != -1) {    bookmarkView.outliner.focus();    bookmarkView.outlinerBoxObject.selection.select(ind);    gCreateInFolder = folder.Value;  }  else {    bookmarkView.outlinerBoxObject.selection.clearSelection();    gCreateInFolder = "NC:BookmarksRoot";  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/07d96867f11683becf5e1a6ca5e64e6a9324c957/addBookmark.js/buggy/xpfe/components/bookmarks/resources/addBookmark.js