зеркало из https://github.com/mozilla/gecko-dev.git
Fix console by updating component request from unused 'consoleservice' to 'mozilla.consoleservice.1'. Oversight!
This commit is contained in:
Родитель
2d058a10f6
Коммит
1d9c2ddad4
|
@ -40,7 +40,7 @@ var consoleListener = {
|
|||
function onLoadJSConsole()
|
||||
{
|
||||
try {
|
||||
var cs_class = Components.classes['consoleservice'];
|
||||
var cs_class = Components.classes['mozilla.consoleservice.1'];
|
||||
var cs_iface = Components.interfaces.nsIConsoleService;
|
||||
var cs_isupports = cs_class.getService();
|
||||
var cs = cs_isupports.QueryInterface(cs_iface);
|
||||
|
@ -77,7 +77,7 @@ function onUnloadJSConsole()
|
|||
// keep a global ref. to it instead???
|
||||
|
||||
try {
|
||||
var cs_class = Components.classes['consoleservice'];
|
||||
var cs_class = Components.classes['mozilla.consoleservice.1'];
|
||||
var cs_iface = Components.interfaces.nsIConsoleService;
|
||||
var cs_isupports = cs_class.getService();
|
||||
var cs = cs_isupports.QueryInterface(cs_iface);
|
||||
|
@ -135,7 +135,7 @@ function appendMessage(messageObject)
|
|||
text += scriptError.sourceName;
|
||||
text += " line " + scriptError.lineNumber +
|
||||
", column " + scriptError.columnNumber + ": " + scriptError.message;
|
||||
text += "Source line: " + scriptError.sourceLine;
|
||||
text += " Source line: " + scriptError.sourceLine;
|
||||
|
||||
msgContent = document.createTextNode(text);
|
||||
} catch (exn) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче