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:
mccabe%netscape.com 2000-08-17 23:39:49 +00:00
Родитель f224002e62
Коммит 493ccf262a
1 изменённых файлов: 3 добавлений и 4 удалений

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

@ -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(); }
}