Bug 1273967 - Include DevTools command line handler via category entry. r=ochameau
authorJ. Ryan Stinnett <jryans@gmail.com>
Tue, 17 May 2016 18:39:06 -0500
changeset 338005 fef64183cb939b13fbfdd5b1b44bd3c63d64d88f
parent 338004 ff6044ca81893c73528253564e0f3ccbcacff046
child 338006 9bed18498d9dfb6e544d63008e371ba45abe3557
push id6249
push userjlund@mozilla.com
push dateMon, 01 Aug 2016 13:59:36 +0000
treeherdermozilla-beta@bad9d4f5bf7e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersochameau
bugs1273967
milestone49.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 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