Quit warning patch

This commit is contained in:
Fedor 2019-03-12 20:08:16 +03:00
parent 6cc9f5845f
commit e00ad2c8d4
4 changed files with 9 additions and 4 deletions

View File

@ -5476,6 +5476,9 @@
<body><![CDATA[
let numTabs = this.childNodes.length -
this.tabbrowser._removingTabs.length;
if (numTabs > 2) {
// This is an optimization to avoid layout flushes by calling
// getBoundingClientRect() when we just opened a second tab. In

View File

@ -1279,8 +1279,6 @@ BrowserGlue.prototype = {
}
this._saveSession = false;
if (pagecount < 2)
return;
if (!aQuitType)
aQuitType = "quit";

View File

@ -3819,11 +3819,17 @@
// when closing the window with the last tab, then we should check
// if (numTabs == 1 && this._closeWindowWithLastTab) here and set
// this.setAttribute("closebuttons", "hidden") appropriately
if (numTabs == 1 && this._closeWindowWithLastTab)
this.setAttribute("closebuttons", "hidden");
else
this.setAttribute("closebuttons", "activetab");
break;
case 1:
if (numTabs == 1) {
// See remark about potentially hiding the close tab button, above.
if (this._closeWindowWithLastTab)
this.setAttribute("closebuttons", "hidden");
else
this.setAttribute("closebuttons", "alltabs");
} else if (numTabs == 2) {
// This is an optimization to avoid layout flushes by calling

View File

@ -691,8 +691,6 @@ BrowserGlue.prototype = {
}
this._saveSession = false;
if (pagecount < 2)
return;
if (!aQuitType)
aQuitType = "quit";