Fix a few typos in Loader.jsm (bug 867485); r=jwalker
authorPanos Astithas <past@mozilla.com>
Tue, 14 May 2013 12:48:18 +0300
changeset 131813 965fa67fc4104822b16e250a4675df15e73fbed9
parent 131812 ccd3e170abb4ce508bb0eac5b8d9c8387367b16f
child 131814 94d8c42bdc63d25488fe7e31d964179dd3b63b85
push id1615
push userpastithas@mozilla.com
push dateTue, 14 May 2013 09:49:45 +0000
treeherderfx-team@965fa67fc410 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjwalker
bugs867485
milestone24.0a1
Fix a few typos in Loader.jsm (bug 867485); r=jwalker
toolkit/devtools/Loader.jsm
--- a/toolkit/devtools/Loader.jsm
+++ b/toolkit/devtools/Loader.jsm
@@ -3,23 +3,23 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 "use strict";
 
 /**
  * Manages the addon-sdk loader instance used to load the developer tools.
  */
 
-let Cu = Components.utils;
+let { interfaces: Ci, utils: Cu } = Components;
 
 Cu.import("resource://gre/modules/XPCOMUtils.jsm");
 Cu.import("resource://gre/modules/Services.jsm");
 
 XPCOMUtils.defineLazyModuleGetter(this, "NetUtil", "resource://gre/modules/NetUtil.jsm");
-XPCOMUtils.defineLazyModuleGetter(this, "FileUtils", "resource://gre/modules/NetUtil.jsm");
+XPCOMUtils.defineLazyModuleGetter(this, "FileUtils", "resource://gre/modules/FileUtils.jsm");
 XPCOMUtils.defineLazyModuleGetter(this, "OS", "resource://gre/modules/osfile.jsm");
 XPCOMUtils.defineLazyModuleGetter(this, "console", "resource://gre/modules/devtools/Console.jsm");
 
 let loader = Cu.import("resource://gre/modules/commonjs/toolkit/loader.js", {}).Loader;
 let Promise = Cu.import("resource://gre/modules/commonjs/sdk/core/promise.js", {}).Promise;
 
 this.EXPORTED_SYMBOLS = ["devtools"];
 
@@ -59,17 +59,17 @@ var BuiltinProvider = {
 // from the builtin tools.
 var SrcdirProvider = {
   load: function(done) {
     let srcdir = Services.prefs.getComplexValue("devtools.loader.srcdir",
                                                 Ci.nsISupportsString);
     srcdir = OS.Path.normalize(srcdir.data.trim());
     let devtoolsDir = OS.Path.join(srcdir, "browser/devtools");
     let toolkitDir = OS.Path.join(srcdir, "toolkit/devtools");
-    let serverDir = OS.path.join(toolkitDir, "server")
+    let serverDir = OS.Path.join(toolkitDir, "server")
 
     this.loader = new loader.Loader({
       paths: {
         "": "resource://gre/modules/commonjs/",
         "devtools/server": "file://" + serverDir,
         "devtools": "file://" + devtoolsDir,
         "main": "file://" + devtoolsDir + "/main.js"
       },