diff --git a/extensions/irc/js/lib/chatzilla-service.js b/extensions/irc/js/lib/chatzilla-service.js index dcf24f5cb18e..f23024c0f0cf 100644 --- a/extensions/irc/js/lib/chatzilla-service.js +++ b/extensions/irc/js/lib/chatzilla-service.js @@ -114,7 +114,7 @@ function (aContentType, aCommand, aWindowTarget, aRequest) var channel = aRequest.QueryInterface(nsIChannel); /* - dump ("ircLoader.handleContent (" + aContentType + ", " + + debug ("ircLoader.handleContent (" + aContentType + ", " + aCommand + ", " + aWindowTarget + ", " + channel.URI.spec + ")\n"); */ @@ -179,7 +179,7 @@ function (aSpec, aCharset, aBaseURI) { if (aBaseURI) { - dump ("-*- ircHandler: aBaseURI passed to newURI, bailing.\n"); + debug ("-*- ircHandler: aBaseURI passed to newURI, bailing.\n"); return null; } @@ -282,7 +282,7 @@ var ChatzillaModule = new Object(); ChatzillaModule.registerSelf = function (compMgr, fileSpec, location, type) { - dump("*** Registering -chat handler.\n"); + debug("*** Registering -chat handler.\n"); compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentRegistrar); @@ -299,7 +299,7 @@ function (compMgr, fileSpec, location, type) "chatzilla command line handler", CLINE_SERVICE_CONTRACTID, true, true); - dump("*** Registering x-application-irc handler.\n"); + debug("*** Registering x-application-irc handler.\n"); compMgr.registerFactoryLocation(IRCCNT_HANDLER_CID, "IRC Content Handler", IRCCNT_HANDLER_CONTRACTID, @@ -307,7 +307,7 @@ function (compMgr, fileSpec, location, type) location, type); - dump("*** Registering irc protocol handler.\n"); + debug("*** Registering irc protocol handler.\n"); compMgr.registerFactoryLocation(IRCPROT_HANDLER_CID, "IRC protocol handler", IRCPROT_HANDLER_CONTRACTID, diff --git a/extensions/venkman/js/venkman-service.js b/extensions/venkman/js/venkman-service.js index 8bde5dda9236..77207d36a26e 100644 --- a/extensions/venkman/js/venkman-service.js +++ b/extensions/venkman/js/venkman-service.js @@ -75,7 +75,7 @@ var Module = new Object(); Module.registerSelf = function (compMgr, fileSpec, location, type) { - dump("*** Registering -venkman handler.\n"); + debug("*** Registering -venkman handler.\n"); compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentRegistrar); diff --git a/extensions/xmlterm/ui/xmlterm-service.js b/extensions/xmlterm/ui/xmlterm-service.js index f407b16cadf2..3c26ad484c2d 100644 --- a/extensions/xmlterm/ui/xmlterm-service.js +++ b/extensions/xmlterm/ui/xmlterm-service.js @@ -120,7 +120,7 @@ function (aContentType, aCommand, aWindowContext, aRequest) var aChannel = aRequest.QueryInterface(Components.interfaces.nsIChannel); - dump("XMLTermContentHandler.handleContent (" + aContentType + ", " + + debug("XMLTermContentHandler.handleContent (" + aContentType + ", " + aCommand + ", " + aWindowContext + ", " + aChannel.URI.spec + ")\n"); @@ -162,7 +162,7 @@ function (aSpec, aCharset, aBaseURI) { if (aBaseURI) { - dump("XMLTermProtocolHandler: aBaseURI passed to newURI, bailing.\n"); + debug("XMLTermProtocolHandler: aBaseURI passed to newURI, bailing.\n"); return null; } @@ -199,7 +199,7 @@ function (aURI) if (!gSystemPrincipal) { if (!xulOwner) { - dump("XMLTermProtocolHandler: Internal error; unable to obtain system principal\n"); + debug("XMLTermProtocolHandler: Internal error; unable to obtain system principal\n"); throw Components.results.NS_ERROR_FAILURE; } gSystemPrincipal = xulOwner; @@ -322,7 +322,7 @@ var XMLtermModule = new Object(); XMLtermModule.registerSelf = function (compMgr, fileSpec, location, type) { - dump("*** Registering -terminal handler.\n"); + debug("*** Registering -terminal handler.\n"); compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentRegistrar); @@ -339,7 +339,7 @@ function (compMgr, fileSpec, location, type) "terminal command line handler", XMLTERMCLINE_SERVICE_CONTRACTID, true, true); - dump("*** Registering x-application-terminal handler.\n"); + debug("*** Registering x-application-terminal handler.\n"); compMgr.registerFactoryLocation(XMLTERMCNT_HANDLER_CID, "XMLTerm Content Handler", XMLTERMCNT_HANDLER_CONTRACTID, @@ -347,7 +347,7 @@ function (compMgr, fileSpec, location, type) location, type); - dump("*** Registering terminal protocol handler.\n"); + debug("*** Registering terminal protocol handler.\n"); compMgr.registerFactoryLocation(XMLTERMPROT_HANDLER_CID, "XMLTerm protocol handler", XMLTERMPROT_HANDLER_CONTRACTID, diff --git a/mailnews/extensions/mdn/src/mdn-service.js b/mailnews/extensions/mdn/src/mdn-service.js index 458524c45f55..90c5ff9b2348 100644 --- a/mailnews/extensions/mdn/src/mdn-service.js +++ b/mailnews/extensions/mdn/src/mdn-service.js @@ -65,7 +65,7 @@ var MDNModule = new Object(); MDNModule.registerSelf = function (compMgr, fileSpec, location, type) { - dump("*** Registering mdn account manager extension.\n"); + debug("*** Registering mdn account manager extension.\n"); compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentRegistrar); compMgr.registerFactoryLocation(MDN_EXTENSION_SERVICE_CID, "MDN Account Manager Extension Service", diff --git a/mailnews/extensions/smime/src/smime-service.js b/mailnews/extensions/smime/src/smime-service.js index 407c123e1ac0..b0651469575a 100644 --- a/mailnews/extensions/smime/src/smime-service.js +++ b/mailnews/extensions/smime/src/smime-service.js @@ -65,7 +65,7 @@ var SMIMEModule = new Object(); SMIMEModule.registerSelf = function (compMgr, fileSpec, location, type) { - dump("*** Registering smime account manager extension.\n"); + debug("*** Registering smime account manager extension.\n"); compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentRegistrar); compMgr.registerFactoryLocation(SMIME_EXTENSION_SERVICE_CID, "SMIME Account Manager Extension Service", diff --git a/xpcom/sample/nsSample.js b/xpcom/sample/nsSample.js index 95a4757af2ad..fcbd3404f9e0 100644 --- a/xpcom/sample/nsSample.js +++ b/xpcom/sample/nsSample.js @@ -27,7 +27,7 @@ mySample.prototype = { set value(newval) { return this.val = newval; }, writeValue: function (aPrefix) { - dump("mySample::writeValue => " + aPrefix + this.val + "\n"); + debug("mySample::writeValue => " + aPrefix + this.val + "\n"); }, poke: function (aValue) { this.val = aValue; }, @@ -60,11 +60,11 @@ var myModule = { */ registerSelf: function (compMgr, fileSpec, location, type) { if (this.firstTime) { - dump("*** Deferring registration of sample JS components\n"); + debug("*** Deferring registration of sample JS components\n"); this.firstTime = false; throw Components.results.NS_ERROR_FACTORY_REGISTER_AGAIN; } - dump("*** Registering sample JS components\n"); + debug("*** Registering sample JS components\n"); compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentRegistrar); compMgr.registerFactoryLocation(this.myCID, "Sample JS Component", @@ -103,7 +103,7 @@ var myModule = { * mightiest of XPCOM warriors to snivelling cowards.) */ createInstance: function (outer, iid) { - dump("CI: " + iid + "\n"); + debug("CI: " + iid + "\n"); if (outer != null) throw Components.results.NS_ERROR_NO_AGGREGATION; @@ -123,7 +123,7 @@ var myModule = { * call it. */ canUnload: function(compMgr) { - dump("*** Unloading sample JS components\n"); + debug("*** Unloading sample JS components\n"); return true; } };