Bug 1495380 - Enable extensions debugging for network locations;r=ladybenko
authorJulian Descottes <jdescottes@mozilla.com>
Fri, 30 Nov 2018 11:08:19 +0000
changeset 508190 9d5cf15c67fcd7ccb5c3debd8766ec92736289e5
parent 508189 de0779f2158adc89bd9d75f6ea2960551286a77e
child 508191 5cbf345f59e22896245f7b4bf948189af02ab845
push id1905
push userffxbld-merge
push dateMon, 21 Jan 2019 12:33:13 +0000
treeherdermozilla-release@c2fca1944d8c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersladybenko
bugs1495380
milestone65.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1495380 - Enable extensions debugging for network locations;r=ladybenko Differential Revision: https://phabricator.services.mozilla.com/D12945
devtools/client/aboutdebugging-new/src/modules/debug-target-support.js
--- a/devtools/client/aboutdebugging-new/src/modules/debug-target-support.js
+++ b/devtools/client/aboutdebugging-new/src/modules/debug-target-support.js
@@ -14,16 +14,17 @@ const ALL_DEBUG_TARGETS = [
 
 const SUPPORTED_TARGET_BY_RUNTIME = {
   [RUNTIMES.THIS_FIREFOX]: ALL_DEBUG_TARGETS,
   [RUNTIMES.USB]: [
     DEBUG_TARGETS.EXTENSION,
     DEBUG_TARGETS.TAB,
   ],
   [RUNTIMES.NETWORK]: [
+    DEBUG_TARGETS.EXTENSION,
     DEBUG_TARGETS.TAB,
   ],
 };
 
 function isSupportedDebugTarget(runtimeType, debugTargetType) {
   return SUPPORTED_TARGET_BY_RUNTIME[runtimeType].includes(debugTargetType);
 }
 exports.isSupportedDebugTarget = isSupportedDebugTarget;
@@ -39,16 +40,17 @@ const ALL_DEBUG_TARGET_PANES = [
 
 const SUPPORTED_TARGET_PANE_BY_RUNTIME = {
   [RUNTIMES.THIS_FIREFOX]: ALL_DEBUG_TARGET_PANES,
   [RUNTIMES.USB]: [
     DEBUG_TARGET_PANE.INSTALLED_EXTENSION,
     DEBUG_TARGET_PANE.TAB,
   ],
   [RUNTIMES.NETWORK]: [
+    DEBUG_TARGET_PANE.INSTALLED_EXTENSION,
     DEBUG_TARGET_PANE.TAB,
   ],
 };
 
 /**
  * A debug target pane is more specialized than a debug target. For instance EXTENSION is
  * a DEBUG_TARGET but INSTALLED_EXTENSION and TEMPORARY_EXTENSION are DEBUG_TARGET_PANES.
  */