From 88c2bab6f0dac5d086cc60460ddd3cef00431e5b 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/basilisk/components/places/content/controller.js | 6 +++++- application/basilisk/components/places/content/placesOverlay.xul | 4 ++-- application/palemoon/components/places/content/controller.js | 6 +++++- application/palemoon/components/places/content/placesOverlay.xul | 4 ++-- 4 files changed, 14 insertions(+), 6 deletions(-) (limited to 'application') diff --git a/application/basilisk/components/places/content/controller.js b/application/basilisk/components/places/content/controller.js index ebdab60f4c..931c8fac14 100644 --- a/application/basilisk/components/places/content/controller.js +++ b/application/basilisk/components/places/content/controller.js @@ -461,7 +461,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/basilisk/components/places/content/placesOverlay.xul b/application/basilisk/components/places/content/placesOverlay.xul index 512eb923e3..2dbef0f049 100644 --- a/application/basilisk/components/places/content/placesOverlay.xul +++ b/application/basilisk/components/places/content/placesOverlay.xul @@ -198,7 +198,7 @@ accesskey="&cmd.delete.accesskey;" closemenu="single" selection="link" - forcehideselection="bookmark"/> + forcehideselection="bookmark|livemarkChild"/> + forcehideselection="bookmark|livemarkChild"/> + forcehideselection="bookmark|livemarkChild"/> + forcehideselection="bookmark|livemarkChild"/>