rem: gBookmarksTree.selectResource(folder); gBookmarksTree.treeBoxObject.selection.selectEventsSuppressed = false; 
add: if (!BMSVC.isBookmarkedResource(folder)) return; selectFolder(folder); 
context: function newFolder(){  gBookmarksTree.focus();  // we should use goDoCommand, but the current way of inserting  // resources do not insert in folders.  //goDoCommand("cmd_bm_newfolder");  gBookmarksTree.treeBoxObject.selection.selectEventsSuppressed = true;  gBookmarksTree.treeBoxObject.selection.clearSelection();  var target = BookmarksUtils.getTargetFromFolder(gSelectedFolder);  var folder = BookmarksCommand.createNewFolder(target);  gBookmarksTree.selectResource(folder);  gBookmarksTree.treeBoxObject.selection.selectEventsSuppressed = false;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/4e8868b6ae61f2a08a05c335c10c5e46dc176819/addBookmark2.js/buggy/browser/components/bookmarks/content/addBookmark2.js