From d2d27fcedc44486d958ddeb614a96d799fe33327 Mon Sep 17 00:00:00 2001 From: "dietrich%mozilla.com" Date: Tue, 18 Mar 2008 21:20:55 +0000 Subject: [PATCH] Bug 404658 - Drag and drop in Bookmarks Sidebar allows bookmarks to be place in top level ("/") folder above bookmarks menu (r=mano) --- browser/components/places/content/utils.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/browser/components/places/content/utils.js b/browser/components/places/content/utils.js index 82b32089b4e..3629e6f90fa 100644 --- a/browser/components/places/content/utils.js +++ b/browser/components/places/content/utils.js @@ -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);