diff --git a/browser/components/places/content/menu.xml b/browser/components/places/content/menu.xml index 6ab30c474b8..61008ee987f 100644 --- a/browser/components/places/content/menu.xml +++ b/browser/components/places/content/menu.xml @@ -107,7 +107,7 @@ let tagName = PlacesUtils.nodeIsTagQuery(elt._placesNode) ? elt._placesNode.title : null; if ((PlacesUtils.nodeIsFolder(elt._placesNode) && - !PlacesUIUtils.isContentsReadOnly(elt._placesNode) || + !PlacesUIUtils.isContentsReadOnly(elt._placesNode)) || PlacesUtils.nodeIsTagQuery(elt._placesNode)) { // This is a folder or a tag container. if (eventY - eltY < eltHeight * 0.20) { diff --git a/browser/components/places/content/treeView.js b/browser/components/places/content/treeView.js index dd4f4f815c2..bb072489ad4 100644 --- a/browser/components/places/content/treeView.js +++ b/browser/components/places/content/treeView.js @@ -1674,9 +1674,9 @@ PlacesTreeView.prototype = { if (PlacesUtils.nodeIsSeparator(node) || PlacesUtils.isRootItem(itemId)) return false; - let parentId = node.parent.itemId; + let parentId = PlacesUtils.getConcreteItemId(node.parent); if (parentId == PlacesUIUtils.leftPaneFolderId || - parentId == PlacesUIUtils.allBallBookmarksFolderId) { + parentId == PlacesUIUtils.allBookmarksFolderId) { // Note that the for the time being this is the check that actually // blocks renaming places "roots", and not the isRootItem check above. // That's because places root are only exposed through folder shortcuts