From 0b6c76ca9b0793dae52f8da3bd5fc8b2e7aed652 Mon Sep 17 00:00:00 2001 From: Jan Keromnes Date: Wed, 6 May 2015 10:28:00 +0200 Subject: [PATCH] Bug 1158046 - Add access keys to all context menu items in the Network panel. r=bgrins r=jsantell --- .../devtools/netmonitor/netmonitor-view.js | 4 +- browser/devtools/netmonitor/netmonitor.xul | 11 ++-- .../chrome/browser/devtools/netmonitor.dtd | 60 +++++++++++-------- 3 files changed, 43 insertions(+), 32 deletions(-) diff --git a/browser/devtools/netmonitor/netmonitor-view.js b/browser/devtools/netmonitor/netmonitor-view.js index cedebf2921c2..f0136f248eac 100644 --- a/browser/devtools/netmonitor/netmonitor-view.js +++ b/browser/devtools/netmonitor/netmonitor-view.js @@ -1863,8 +1863,8 @@ RequestsMenuView.prototype = Heritage.extend(WidgetMethods, { !selectedItem.attachment.responseContent || !selectedItem.attachment.responseContent.content.mimeType.includes("image/"); - let separator = $("#request-menu-context-separator"); - separator.hidden = !selectedItem; + let separators = $all(".request-menu-context-separator"); + Array.forEach(separators, 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 5128e296fca1..eb478c6a7cb5 100644 --- a/browser/devtools/netmonitor/netmonitor.xul +++ b/browser/devtools/netmonitor/netmonitor.xul @@ -25,9 +25,6 @@ - @@ -37,13 +34,16 @@ oncommand="NetMonitorView.RequestsMenu.copyUrlParams();"/> + - + + diff --git a/browser/locales/en-US/chrome/browser/devtools/netmonitor.dtd b/browser/locales/en-US/chrome/browser/devtools/netmonitor.dtd index 21b3404a6f7c..95ccfc11acef 100644 --- a/browser/locales/en-US/chrome/browser/devtools/netmonitor.dtd +++ b/browser/locales/en-US/chrome/browser/devtools/netmonitor.dtd @@ -248,21 +248,13 @@ - in the security tab describing the server certificate section. --> - - - - - - - + @@ -278,13 +270,25 @@ - http://en.wikipedia.org/wiki/CURL --> - - + + - - + + + + + + + + + + + @@ -294,17 +298,13 @@ - for the Copy Response menu item displayed in the context menu for a request --> - - + + - - - - - + + - + + + + + + +