mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 829913 - Error while closing web console; r=past
This commit is contained in:
parent
4cbc9b09c7
commit
b5e12f5419
@ -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;
|
||||
},
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user