Bustage backout to avoid browser_privatebrowsing_windowtitle.js failure.

This commit is contained in:
Edward Lee 2010-08-13 21:08:52 -07:00
Родитель 3909a733b1 10ae28556b
Коммит ca56f83bea
1 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -440,6 +440,14 @@ var UIManager = {
tab.tabItem.setZoomPrep(false); tab.tabItem.setZoomPrep(false);
self.showTabView(); self.showTabView();
} }
// ToDo: When running unit tests, everything happens so quick so
// new tabs might be added after a tab is closing. Therefore, this
// hack is used. We should look for a better solution.
setTimeout(function() { // Marshal event from chrome thread to DOM thread
if ((groupItem && groupItem._children.length > 0) ||
(groupItem == null && gBrowser.visibleTabs.length > 0))
self.hideTabView();
}, 1);
} }
} }
}); });