mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 665544 - Using Quit menu does not save session state as expected [r=mbrubeck]
This commit is contained in:
parent
4508cf0dbb
commit
026522a65d
@ -392,8 +392,12 @@ var Browser = {
|
||||
},
|
||||
|
||||
quit: function quit() {
|
||||
window.QueryInterface(Ci.nsIDOMChromeWindow).minimize();
|
||||
window.close();
|
||||
// NOTE: onclose seems to be called only when using OS chrome to close a window,
|
||||
// so we need to handle the Browser.closing check ourselves.
|
||||
if (this.closing()) {
|
||||
window.QueryInterface(Ci.nsIDOMChromeWindow).minimize();
|
||||
window.close();
|
||||
}
|
||||
},
|
||||
|
||||
_waitingToClose: false,
|
||||
|
Loading…
Reference in New Issue
Block a user