зеркало из https://github.com/mozilla/gecko-dev.git
Fix to 49365.
Work around dump() logging messages to the js console by not having the js console call dump(). Also fix the console code so that string messages (originating from logStringMessage() calls) get printed properly, and adjust the number of saved console messages to match that of the underlying console service. r=jband, a=beard
This commit is contained in:
Родитель
f224002e62
Коммит
493ccf262a
|
@ -168,10 +168,9 @@ function appendMessage(messageObject)
|
|||
cell.setAttribute("msg", scriptError.message);
|
||||
cell.setAttribute("error", scriptError.sourceLine);
|
||||
} catch (exn) {
|
||||
dump(exn + '\n');
|
||||
// dump(exn + '\n');
|
||||
// QI failed, just try to treat it as an nsIConsoleMessage
|
||||
text = messageObject.message;
|
||||
cell.setAttribute("value", text);
|
||||
cell.setAttribute("msg", messageObject.message);
|
||||
}
|
||||
row.appendChild(cell);
|
||||
item.appendChild(row);
|
||||
|
@ -179,7 +178,7 @@ function appendMessage(messageObject)
|
|||
num_errors++;
|
||||
|
||||
//Deletes top error if error console is long
|
||||
if(num_errors>200) { deleteOne(); }
|
||||
if(num_errors>250) { deleteOne(); }
|
||||
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче