Bug 960357 - Disable the Downloads API debugging spew by default. r=fabrice

This commit is contained in:
Reuben Morais 2014-01-17 14:06:27 -02:00
parent 9328b465d1
commit 508f2b8118
4 changed files with 11 additions and 2 deletions

View File

@ -18,7 +18,9 @@ XPCOMUtils.defineLazyServiceGetter(this, "cpmm",
"nsIMessageSender");
function debug(aStr) {
#ifdef MOZ_DEBUG
dump("-*- DownloadsAPI.js : " + aStr + "\n");
#endif
}
function DOMDownloadManagerImpl() {

View File

@ -19,7 +19,9 @@ XPCOMUtils.defineLazyServiceGetter(this, "ppmm",
"nsIMessageBroadcaster");
function debug(aStr) {
#ifdef MOZ_DEBUG
dump("-*- DownloadsAPI.jsm : " + aStr + "\n");
#endif
}
function sendPromiseMessage(aMm, aMessageName, aData, aError) {

View File

@ -27,7 +27,9 @@ XPCOMUtils.defineLazyServiceGetter(this, "cpmm",
*/
function debug(aStr) {
#ifdef MOZ_DEBUG
dump("-*- DownloadsIPC.jsm : " + aStr + "\n");
#endif
}
const ipcMessages = ["Downloads:Added",

View File

@ -5,11 +5,14 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
EXTRA_COMPONENTS += [
'DownloadsAPI.js',
'DownloadsAPI.manifest',
]
EXTRA_JS_MODULES += [
EXTRA_PP_COMPONENTS = [
'DownloadsAPI.js',
]
EXTRA_PP_JS_MODULES += [
'DownloadsAPI.jsm',
'DownloadsIPC.jsm',
]