From 8cb22c4c97299bd923e1bf4480974bb2ab886f9c Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Thu, 9 Jul 2009 05:41:00 +1000 Subject: [PATCH] Fix the tab count status-line field in FF 3.5. --- common/content/events.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/content/events.js b/common/content/events.js index d39a0d56..096e6594 100644 --- a/common/content/events.js +++ b/common/content/events.js @@ -370,7 +370,8 @@ function Events() //{{{ tabcontainer.addEventListener("TabSelect", function (event) { // TODO: is all of that necessary? modes.reset(); - statusline.updateTabCount(); + // XXX: apparently the tab container hasn't updated mTabs yet + setTimeout(function () { statusline.updateTabCount(); }, 0); tabs.updateSelectionHistory(); if (options["focuscontent"])