Bug 657331 - Fix the registerCleanupFunction() in browser_tabview_bug625195.js r=ian

This commit is contained in:
Raymond Lee 2011-05-16 20:40:09 +08:00
parent 33fe4e2770
commit 26574c60f1

View File

@ -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();
});