Bug 665544 - Using Quit menu does not save session state as expected [r=mbrubeck]

This commit is contained in:
Mark Finkle 2011-06-20 11:29:26 -04:00
parent 4508cf0dbb
commit 026522a65d

View File

@ -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,