Checking in for Neil <neil@parkwaycc.co.uk>
Fix for bug 109651. The [X] cross in tab bar should be disabled when there is only one tab. r=timeless, sr=jag, a=asa Fix for bug 109651 git-svn-id: svn://10.0.0.236/trunk@116540 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
0ae6ea018d
commit
3ba106ccab
@ -331,7 +331,7 @@
|
||||
<xul:stack flex="1">
|
||||
<xul:spacer class="tabs-right"/>
|
||||
<xul:hbox class="tabs-closebutton-box" align="center" pack="end">
|
||||
<xul:toolbarbutton class="tabs-closebutton close-button" inherits="oncommand=onclosetab"/>
|
||||
<xul:toolbarbutton class="tabs-closebutton close-button" inherits="disabled=disableclose,oncommand=onclosetab"/>
|
||||
</xul:hbox>
|
||||
</xul:stack>
|
||||
</content>
|
||||
|
||||
@ -75,7 +75,7 @@
|
||||
tabbrowser.removeAllTabsBut(tabbrowser.mContextTab);"/>
|
||||
</xul:menupopup>
|
||||
|
||||
<xul:tabs class="tabbrowser-tabs" closebutton="true" flex="1"
|
||||
<xul:tabs class="tabbrowser-tabs" closebutton="true" disableclose="true" flex="1"
|
||||
onclick="if (event.button != 1 || event.target.localName != 'tab') return;
|
||||
this.parentNode.parentNode.parentNode.removeTab(event.target);"
|
||||
ondragover="nsDragAndDrop.dragOver(event, this.parentNode.parentNode.parentNode);
|
||||
@ -572,6 +572,9 @@
|
||||
<parameter name="aReferrerURI"/>
|
||||
<body>
|
||||
<![CDATA[
|
||||
// Enable the close box
|
||||
this.mTabContainer.removeAttribute("disableclose");
|
||||
|
||||
var blank = (aURI == "about:blank");
|
||||
|
||||
if (!this.mTabbedMode)
|
||||
@ -668,6 +671,9 @@
|
||||
var autohide = this.mPrefs.getBoolPref("browser.tabs.autoHide");
|
||||
if (autohide)
|
||||
this.setStripVisibilityTo(false);
|
||||
else
|
||||
// Disable the close box
|
||||
this.mTabContainer.setAttribute("disableclose", "true");
|
||||
}
|
||||
|
||||
var index = -1;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user