From 26574c60f16f08d65756e93b108c461600308dee Mon Sep 17 00:00:00 2001 From: Raymond Lee Date: Mon, 16 May 2011 20:40:09 +0800 Subject: [PATCH] Bug 657331 - Fix the registerCleanupFunction() in browser_tabview_bug625195.js r=ian --- .../base/content/test/tabview/browser_tabview_bug625195.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/browser/base/content/test/tabview/browser_tabview_bug625195.js b/browser/base/content/test/tabview/browser_tabview_bug625195.js index 29fa5e52362..9b857090436 100644 --- a/browser/base/content/test/tabview/browser_tabview_bug625195.js +++ b/browser/base/content/test/tabview/browser_tabview_bug625195.js @@ -16,10 +16,8 @@ function test() { showTabView(function() { registerCleanupFunction(function () { - if (gBrowser.tabs[1]) + while (gBrowser.tabs.length > 1) gBrowser.removeTab(gBrowser.tabs[1]); - if (gBrowser.tabs[2]) - gBrowser.removeTab(gBrowser.tabs[2]); TabView.hide(); });