Bug 367461 Tab Preview Should Be Disabled for Current Tab

r+sr=neil


git-svn-id: svn://10.0.0.236/trunk@218726 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
cst%yecc.com
2007-01-21 20:36:58 +00:00
parent 79e5cd32d2
commit 941dbe1f6a

View File

@@ -222,7 +222,8 @@
var canvas = aPopup.lastChild.firstChild;
canvas.parentNode.hidden = true;
if (!this.mPrefs.getBoolPref("browser.tabs.tooltippreview.enable")) {
if (tab == this.mCurrentTab ||
!this.mPrefs.getBoolPref("browser.tabs.tooltippreview.enable")) {
label.removeAttribute("width");
aPopup.removeAttribute("tabpreview");
return true;