Bug 405137 - no tooltip for tab close button, r=mano, a=beltzner

This commit is contained in:
philringnalda@gmail.com 2008-01-29 23:16:00 -08:00
parent 81d839b21e
commit 7d64d9a402
3 changed files with 14 additions and 1 deletions

View File

@ -50,6 +50,7 @@ _TEST_FILES = test_feed_discovery.html \
$(NULL)
_BROWSER_FILES = browser_bug321000.js \
browser_bug405137.js \
browser_bug409481.js \
browser_autodiscovery.js \
autodiscovery.html \

View File

@ -0,0 +1,5 @@
function test(){
var tab = gBrowser.addTab();
ok(tab.getAttribute("closetabtext") != "", "tab has non-empty closetabtext");
gBrowser.removeTab(tab);
}

View File

@ -1,5 +1,12 @@
<?xml version="1.0"?>
<!DOCTYPE bindings [
<!ENTITY % tabBrowserDTD SYSTEM "chrome://browser/locale/tabbrowser.dtd" >
%tabBrowserDTD;
<!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd">
%globalDTD;
]>
<bindings id="globalBindings"
xmlns="http://www.mozilla.org/xbl"
xmlns:html="http://www.w3.org/1999/xhtml"
@ -78,7 +85,7 @@
</content>
</binding>
<binding id="tabbrowser-tab" extends="chrome://browser/content/tabbrowser.xml#tabbrowser-tab">
<content>
<content chromedir="&locale.dir;" closetabtext="&closeTab.label;">
<xul:hbox class="tab-image-left" xbl:inherits="selected"/>
<xul:hbox class="tab-image-middle" flex="1" align="center" xbl:inherits="selected">
<xul:stack class="tab-icon">