From 7dfb0c2168fd6f04e3c2eccbd5f589baa9d0b0e0 Mon Sep 17 00:00:00 2001 From: janekptacijarabaci Date: Mon, 12 Aug 2019 23:41:30 +0200 Subject: Remove "Delete this page" and "Forget about this site" from livemarks. These context menu entries should not be present on live bookmarks because they make no sense for feed entries. This resolves #663. --- application/palemoon/components/places/content/controller.js | 6 +++++- application/palemoon/components/places/content/placesOverlay.xul | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'application/palemoon/components') diff --git a/application/palemoon/components/places/content/controller.js b/application/palemoon/components/places/content/controller.js index d09827163..f4e272e2f 100644 --- a/application/palemoon/components/places/content/controller.js +++ b/application/palemoon/components/places/content/controller.js @@ -444,7 +444,11 @@ PlacesController.prototype = { if (parentNode) { if (PlacesUtils.nodeIsTagQuery(parentNode)) nodeData["tagChild"] = true; - else if (this.hasCachedLivemarkInfo(parentNode)) + } + } else { + var parentNode = node.parent; + if (parentNode) { + if (this.hasCachedLivemarkInfo(parentNode)) nodeData["livemarkChild"] = true; } } diff --git a/application/palemoon/components/places/content/placesOverlay.xul b/application/palemoon/components/places/content/placesOverlay.xul index 745990a9c..59115a57f 100644 --- a/application/palemoon/components/places/content/placesOverlay.xul +++ b/application/palemoon/components/places/content/placesOverlay.xul @@ -203,7 +203,7 @@ accesskey="&cmd.delete.accesskey;" closemenu="single" selection="link" - forcehideselection="bookmark"/> + forcehideselection="bookmark|livemarkChild"/> + forcehideselection="bookmark|livemarkChild"/>