Bug 404658 - Drag and drop in Bookmarks Sidebar allows bookmarks to be place in top level ("/") folder above bookmarks menu (r=mano)

This commit is contained in:
dietrich%mozilla.com 2008-03-18 21:20:55 +00:00
Родитель 6f78cada89
Коммит d2d27fcedc
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -1156,6 +1156,9 @@ var PlacesUIUtils = {
"AllBookmarks", 0, EXPIRE_NEVER); "AllBookmarks", 0, EXPIRE_NEVER);
self.leftPaneQueries["AllBookmarks"] = itemId; self.leftPaneQueries["AllBookmarks"] = itemId;
// disallow manipulating this folder within the organizer UI
PlacesUtils.bookmarks.setFolderReadonly(allBookmarksId, true);
// All Bookmarks->Bookmarks Toolbar Query // All Bookmarks->Bookmarks Toolbar Query
uri = PlacesUtils._uri("place:folder=TOOLBAR"); uri = PlacesUtils._uri("place:folder=TOOLBAR");
itemId = PlacesUtils.bookmarks.insertBookmark(allBookmarksId, uri, -1, null); itemId = PlacesUtils.bookmarks.insertBookmark(allBookmarksId, uri, -1, null);