Bug 1273967 - Include DevTools command line handler via category entry. r=ochameau draft
authorJ. Ryan Stinnett <jryans@gmail.com>
Tue, 17 May 2016 18:39:06 -0500
changeset 368384 2dd4de8f1af6a3d204ec44b937ec0e65905f32ab
parent 368383 4cfa7a2cefa7701377c73c468ddf5671e2e73b05
child 521256 450d023059d3a8435508ba46a449612168a378a3
push id18518
push userbmo:jryans@gmail.com
push dateWed, 18 May 2016 17:28:33 +0000
reviewersochameau
bugs1273967
milestone49.0a1
Bug 1273967 - Include DevTools command line handler via category entry. r=ochameau MozReview-Commit-ID: PeO83Q6GLV
devtools/client/devtools-startup.manifest
toolkit/components/console/jsconsole-clhandler.manifest
--- a/devtools/client/devtools-startup.manifest
+++ b/devtools/client/devtools-startup.manifest
@@ -1,2 +1,8 @@
 component {9e9a9283-0ce9-4e4a-8f1c-ba129a032c32} devtools-startup.js
-contract @mozilla.org/toolkit/console-clh;1 {9e9a9283-0ce9-4e4a-8f1c-ba129a032c32}
+contract @mozilla.org/devtools/startup-clh;1 {9e9a9283-0ce9-4e4a-8f1c-ba129a032c32}
+# We want this to override toolkit's --jsconsole handling, so it must have a
+# a higher priority than the entry in jsconsole-clhandler.manifest.  Higher
+# priority means the "m-devtools" value below needs to be something that sorts
+# before the one in jsconsole-clhandler.manifest.  See details in
+# nsICommandLineHandler.idl.
+category command-line-handler m-devtools @mozilla.org/devtools/startup-clh;1
--- a/toolkit/components/console/jsconsole-clhandler.manifest
+++ b/toolkit/components/console/jsconsole-clhandler.manifest
@@ -1,3 +1,3 @@
 component {2cd0c310-e127-44d0-88fc-4435c9ab4d4b} jsconsole-clhandler.js
 contract @mozilla.org/toolkit/console-clh;1 {2cd0c310-e127-44d0-88fc-4435c9ab4d4b}
-category command-line-handler b-jsconsole @mozilla.org/toolkit/console-clh;1
+category command-line-handler t-jsconsole @mozilla.org/toolkit/console-clh;1