From a56630221c75926e0b2a23ce00bb815099d63c28 Mon Sep 17 00:00:00 2001 From: Veeti Paananen Date: Tue, 24 Jun 2014 01:42:08 +0300 Subject: [PATCH] Bug 999993 - netmonitor shows useless context menu separator. r=vporof --- browser/devtools/netmonitor/netmonitor-view.js | 3 +++ browser/devtools/netmonitor/netmonitor.xul | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/browser/devtools/netmonitor/netmonitor-view.js b/browser/devtools/netmonitor/netmonitor-view.js index e60aa31a5121..10f0a9d8bf7a 100644 --- a/browser/devtools/netmonitor/netmonitor-view.js +++ b/browser/devtools/netmonitor/netmonitor-view.js @@ -1622,6 +1622,9 @@ RequestsMenuView.prototype = Heritage.extend(WidgetMethods, { !selectedItem.attachment.responseContent || !selectedItem.attachment.responseContent.content.mimeType.contains("image/"); + let separator = $("#request-menu-context-separator"); + separator.hidden = !selectedItem; + let newTabElement = $("#request-menu-context-newtab"); newTabElement.hidden = !selectedItem; }, diff --git a/browser/devtools/netmonitor/netmonitor.xul b/browser/devtools/netmonitor/netmonitor.xul index 07ae886b240b..1277e4888170 100644 --- a/browser/devtools/netmonitor/netmonitor.xul +++ b/browser/devtools/netmonitor/netmonitor.xul @@ -38,7 +38,7 @@ - +