зеркало из https://github.com/mozilla/gecko-dev.git
Use debug() instead of dump() so that js component registration output only shows up in debug builds.
Bug #138726 r=rginda sr=alecf
This commit is contained in:
Родитель
15227c9a31
Коммит
717f160cfa
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче