Bug 829913 - Error while closing web console; r=past

This commit is contained in:
Mihai Sucan 2013-01-12 18:17:10 +02:00
parent 4cbc9b09c7
commit b5e12f5419

View File

@ -170,10 +170,19 @@ WebConsole.prototype = {
iframe: null,
_destroyer: null,
_browserWindow: null,
get browserWindow()
{
return this.target.isLocalTab ?
this.chromeWindow.top : HUDService.currentContext();
if (!this._browserWindow) {
let window = this.chromeWindow.top;
let element = window.document.documentElement;
if (element.getAttribute("windowtype") != "navigator:browser") {
window = HUDService.currentContext();
}
this._browserWindow = window;
}
return this._browserWindow;
},
/**