зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
a6c966db0a
Коммит
1e4da5213f
|
@ -1156,6 +1156,9 @@ var PlacesUIUtils = {
|
|||
"AllBookmarks", 0, EXPIRE_NEVER);
|
||||
self.leftPaneQueries["AllBookmarks"] = itemId;
|
||||
|
||||
// disallow manipulating this folder within the organizer UI
|
||||
PlacesUtils.bookmarks.setFolderReadonly(allBookmarksId, true);
|
||||
|
||||
// All Bookmarks->Bookmarks Toolbar Query
|
||||
uri = PlacesUtils._uri("place:folder=TOOLBAR");
|
||||
itemId = PlacesUtils.bookmarks.insertBookmark(allBookmarksId, uri, -1, null);
|
||||
|
|
Загрузка…
Ссылка в новой задаче