Bug 1198988 - Turn off some useless dump() calls r=ferjm

This commit is contained in:
Fabrice Desré 2015-08-27 09:23:57 -07:00
Родитель 18d32f3336
Коммит c44188bbf3
1 изменённых файлов: 8 добавлений и 4 удалений

Просмотреть файл

@ -858,9 +858,13 @@ this.DOMApplicationRegistry = {
root = aManifest.entry_points[aEntryPoint];
}
if (!root.messages || !Array.isArray(root.messages) ||
root.messages.length == 0) {
dump("Could not register invalid system message entry\n");
if (!root.messages) {
// This application just doesn't use system messages.
return;
}
if (!Array.isArray(root.messages) || root.messages.length == 0) {
dump("Could not register invalid system message entry for " + aApp.manifestURL + "\n");
try {
dump(JSON.stringify(root.messages) + "\n");
} catch(e) {}
@ -874,7 +878,7 @@ this.DOMApplicationRegistry = {
let handlerPageURI = launchPathURI;
let messageName;
if (typeof(aMessage) !== "object" || Object.keys(aMessage).length !== 1) {
dump("Could not register invalid system message entry\n");
dump("Could not register invalid system message entry for " + aApp.manifestURL + "\n");
try {
dump(JSON.stringify(aMessage) + "\n");
} catch(e) {}