mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-23 19:09:49 +00:00
Bug 748895 - Error message if an error message arrived after the destruction of the console binding. r=enndeakin
This commit is contained in:
parent
9a55fe1f2c
commit
6e4eabd1a0
@ -80,7 +80,12 @@
|
||||
|
||||
this.mConsoleListener = {
|
||||
console: this,
|
||||
observe : function(aObject) { this.console.appendItem(aObject); }
|
||||
observe : function(aObject) {
|
||||
// The message can arrive a little bit after the xbl binding has been
|
||||
// unbind. So node.appendItem will not be available anymore.
|
||||
if ('appendItem' in this.console)
|
||||
this.console.appendItem(aObject);
|
||||
}
|
||||
};
|
||||
|
||||
this.mConsoleRowBox = document.getAnonymousElementByAttribute(this, "role", "console-rows");
|
||||
|
Loading…
x
Reference in New Issue
Block a user