зеркало из 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:
Родитель
6f78cada89
Коммит
d2d27fcedc
|
@ -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);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче