Quit warning patch
This commit is contained in:
parent
6cc9f5845f
commit
e00ad2c8d4
|
@ -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
|
||||
|
|
|
@ -1279,8 +1279,6 @@ BrowserGlue.prototype = {
|
|||
}
|
||||
|
||||
this._saveSession = false;
|
||||
if (pagecount < 2)
|
||||
return;
|
||||
|
||||
if (!aQuitType)
|
||||
aQuitType = "quit";
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -691,8 +691,6 @@ BrowserGlue.prototype = {
|
|||
}
|
||||
|
||||
this._saveSession = false;
|
||||
if (pagecount < 2)
|
||||
return;
|
||||
|
||||
if (!aQuitType)
|
||||
aQuitType = "quit";
|
||||
|
|
Loading…
Reference in New Issue