Bug 660619 - Silence a warning during tests; r=ddahl,gavin.sharp
authorPanos Astithas <past@mozilla.com>
Tue, 31 May 2011 10:27:17 +0300
changeset 70889 b9ceaebb878f
parent 70888 117044f42385
child 70890 cce6acd42aea
push id20437
push userdcamp@campd.org
push dateFri, 10 Jun 2011 22:40:45 +0000
treeherdermozilla-central@6da2c7c5c170 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersddahl, gavin
bugs660619
milestone7.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 660619 - Silence a warning during tests; r=ddahl,gavin.sharp
toolkit/components/console/hudservice/tests/browser/head.js
--- a/toolkit/components/console/hudservice/tests/browser/head.js
+++ b/toolkit/components/console/hudservice/tests/browser/head.js
@@ -35,29 +35,20 @@
  * the terms of any one of the MPL, the GPL or the LGPL.
  *
  * ***** END LICENSE BLOCK ***** */
 
 const Cc = Components.classes;
 const Ci = Components.interfaces;
 const Cu = Components.utils;
 
+Cu.import("resource://gre/modules/HUDService.jsm");
 Cu.import("resource://gre/modules/Services.jsm");
 Cu.import("resource://gre/modules/XPCOMUtils.jsm");
 
-XPCOMUtils.defineLazyGetter(this, "HUDService", function () {
-  Cu.import("resource:///modules/HUDService.jsm");
-  try {
-    return HUDService;
-  }
-  catch (ex) {
-    dump(ex + "\n");
-  }
-});
-
 function log(aMsg)
 {
   dump("*** WebConsoleTest: " + aMsg + "\n");
 }
 
 function pprint(aObj)
 {
   for (let prop in aObj) {