diff --git a/mozilla/browser/components/bookmarks/content/addBookmark.js b/mozilla/browser/components/bookmarks/content/addBookmark.js index 4aef608ee05..dc6aceac3af 100644 --- a/mozilla/browser/components/bookmarks/content/addBookmark.js +++ b/mozilla/browser/components/bookmarks/content/addBookmark.js @@ -291,8 +291,8 @@ function getNormalizedURL(url) function createNewFolder () { var bookmarksView = document.getElementById("bookmarks-view"); - var selection = bookmarksView.getTreeSelection(); - var target = BookmarksUtils.getTargetFromSelection(selection) + var resource = bookmarksView.treeBuilder.getResourceAtIndex(bookmarksView.currentIndex); + var target = BookmarksUtils.getTargetFromFolder(resource); BookmarksCommand.createNewFolder(target); }