Bug 1455114 - Fix resource://tps/* failing to load when TPS is used as an XPI r=kitcambridge
authorThom Chiovoloni <tchiovoloni@mozilla.com>
Wed, 18 Apr 2018 13:53:41 -0700
changeset 467929 136bae04fe6f77369c2c45167c26557e2f557fbb
parent 467928 c7c5fd50d1756369638cac12f446faa84b0d29ec
child 467930 8c8fe0facf52133b4df95ba97641b2875f364dbe
push id9165
push userasasaki@mozilla.com
push dateThu, 26 Apr 2018 21:04:54 +0000
treeherdermozilla-beta@064c3804de2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskitcambridge
bugs1455114
milestone61.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 1455114 - Fix resource://tps/* failing to load when TPS is used as an XPI r=kitcambridge MozReview-Commit-ID: B8ETNzGijWX
services/sync/tps/extensions/tps/bootstrap.js
--- a/services/sync/tps/extensions/tps/bootstrap.js
+++ b/services/sync/tps/extensions/tps/bootstrap.js
@@ -12,17 +12,17 @@ XPCOMUtils.defineLazyServiceGetter(this,
                                    "nsICategoryManager");
 
 XPCOMUtils.defineLazyServiceGetter(this, "resProto",
                                    "@mozilla.org/network/protocol;1?name=resource",
                                    "nsISubstitutingProtocolHandler");
 
 const Cm = Components.manager.QueryInterface(Ci.nsIComponentRegistrar);
 
-const CATMAN_CONTRACTID        = "@mozilla.org/categorymanager;1";
+const CATMAN_CONTRACTID = "@mozilla.org/categorymanager;1";
 
 const CATEGORY_NAME = "command-line-handler";
 const CATEGORY_ENTRY = "m-tps";
 
 function TPSCmdLine() {}
 
 TPSCmdLine.prototype = {
   factory: XPCOMUtils._getFactory(TPSCmdLine),
@@ -88,17 +88,17 @@ TPSCmdLine.prototype = {
   helpInfo: "  --tps <file>              Run TPS tests with the given test file.\n" +
             "  --tpsphase <phase>        Run the specified phase in the TPS test.\n" +
             "  --tpslogfile <file>       Logfile for TPS output.\n" +
             "  --ignore-unused-engines   Don't load engines not used in tests.\n",
 };
 
 function startup(data, reason) {
   TPSCmdLine.prototype.register();
-  resProto.setSubstitution("tps", Services.io.newURI("resource", null, data.resourceURI));
+  resProto.setSubstitution("tps", Services.io.newURI("resource/", null, data.resourceURI));
 }
 
 function shutdown(data, reason) {
   resProto.setSubstitution("tps", null);
   TPSCmdLine.prototype.unregister();
 }
 
 function install(data, reason) {}