Bug 520374 - WebContentConverter.js needlessly includes debug.js. r=mano
authorDão Gottwald <dao@mozilla.com>
Sat, 03 Oct 2009 18:36:44 -0400
changeset 33437 bb9a35ecb92e63a58ee213d64225503bb93ce527
parent 33436 ce099e5c056a9f70b91fcd15a054f725882490f7
child 33438 a051d25333fc03af727805e9bab8cf1309a2e946
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmano
bugs520374
milestone1.9.3a1pre
Bug 520374 - WebContentConverter.js needlessly includes debug.js. r=mano
browser/components/feeds/src/FeedConverter.js
browser/components/feeds/src/WebContentConverter.js
--- a/browser/components/feeds/src/FeedConverter.js
+++ b/browser/components/feeds/src/FeedConverter.js
@@ -32,16 +32,18 @@
 # use your version of this file under the terms of the MPL, indicate your
 # decision by deleting the provisions above and replace them with the notice
 # and other provisions required by the GPL or the LGPL. If you do not delete
 # the provisions above, a recipient may use your version of this file under
 # the terms of any one of the MPL, the GPL or the LGPL.
 #
 # ***** END LICENSE BLOCK ***** */
 
+Components.utils.import("resource://gre/modules/debug.js");
+
 const Cc = Components.classes;
 const Ci = Components.interfaces;
 const Cr = Components.results;
 
 function LOG(str) {
   dump("*** " + str + "\n");
 }
 
@@ -679,10 +681,9 @@ var Module = {
     return true;
   }
 };
 
 function NSGetModule(cm, file) {
   return Module;
 }
 
-#include ../../../../toolkit/content/debug.js
 #include GenericFactory.js
--- a/browser/components/feeds/src/WebContentConverter.js
+++ b/browser/components/feeds/src/WebContentConverter.js
@@ -935,10 +935,8 @@ WebContentConverterRegistrar.prototype =
     service: true
   }]
 };
 
 function NSGetModule(cm, file) {
   return XPCOMUtils.generateModule([WebContentConverterRegistrar]);
 }
 
-#include ../../../../toolkit/content/debug.js
-