rem: var selection = bookmarksView.getTreeSelection(); var target    = BookmarksUtils.getTargetFromSelection(selection) 
add: var resource = bookmarksView.treeBuilder.getResourceAtIndex(bookmarksView.currentIndex); var target = BookmarksUtils.getTargetFromFolder(resource); 
context: function createNewFolder (){  var bookmarksView = document.getElementById("bookmarks-view");  var selection = bookmarksView.getTreeSelection();  var target    = BookmarksUtils.getTargetFromSelection(selection)  BookmarksCommand.createNewFolder(target);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/3dcef63cd3c6c328d233c9cc6d2ebccc4eac29a4/addBookmark.js/buggy/browser/components/bookmarks/content/addBookmark.js