From bbd95f450b1b37b6077a1a91b8432e555510d6ea Mon Sep 17 00:00:00 2001 From: SHIMODA Hiroshi Date: Wed, 16 Nov 2011 10:45:19 +0900 Subject: [PATCH] the counter in a parent tab should report the count of tabs not only collapsed descendants but including itself. --- modules/browser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/browser.js b/modules/browser.js index cce1b4aa..1bf7c47b 100644 --- a/modules/browser.js +++ b/modules/browser.js @@ -4778,7 +4778,7 @@ TreeStyleTabBrowser.prototype = { { var count = this.document.getAnonymousElementByAttribute(aTab, 'class', this.kCOUNTER); if (count) { - count.setAttribute('value', this.getDescendantTabs(aTab).length); + count.setAttribute('value', this.getDescendantTabs(aTab).length + 1); } if (!aDontUpdateAncestor) { let parent = this.getParentTab(aTab);