diff --git a/mozilla/browser/components/places/content/menu.xml b/mozilla/browser/components/places/content/menu.xml index e6f9f56cbec..6307b5381b7 100755 --- a/mozilla/browser/components/places/content/menu.xml +++ b/mozilla/browser/components/places/content/menu.xml @@ -911,8 +911,8 @@ var selectedNode = this.selectedNode; if (selectedNode) { var popupNode = document.popupNode; - if (popupNode == popupNode.parentNode._emptyMenuItem) { - // If (empty) menuitem is selected the insertion point + if (!popupNode.node) { + // If a static menuitem is selected the insertion point // is inside the folder, at the end. folderId = PlacesUtils.getConcreteItemId(selectedNode); orientation = Ci.nsITreeView.DROP_ON; diff --git a/mozilla/browser/components/places/content/toolbar.xml b/mozilla/browser/components/places/content/toolbar.xml index b2c4d73018c..69efae46c58 100755 --- a/mozilla/browser/components/places/content/toolbar.xml +++ b/mozilla/browser/components/places/content/toolbar.xml @@ -392,8 +392,8 @@ var selectedNode = this.selectedNode; if (selectedNode) { var popupNode = document.popupNode; - if (popupNode == popupNode.parentNode._emptyMenuItem) { - // If (empty) menuitem is selected the insertion point + if (!popupNode.node) { + // If a static menuitem is selected the insertion point // is inside the folder, at the end. folderId = PlacesUtils.getConcreteItemId(selectedNode); orientation = Ci.nsITreeView.DROP_ON;