Bug 650573 - Panorama hangs when restoring a session; f=raymond, r=sdwilsh

This commit is contained in:
Tim Taubert
2011-05-19 23:44:51 +02:00
parent f60ae1b5b9
commit 6ae478a58f
6 changed files with 119 additions and 6 deletions

View File

@@ -2163,7 +2163,16 @@ let GroupItems = {
}
toClose.forEach(function(groupItem) {
groupItem.destroy({immediately: true});
// All remaining children in to-be-closed groups are re-used by
// session restore. Reconnect them so that they're put into their
// right groups.
groupItem.getChildren().forEach(function (tabItem) {
if (tabItem.parent && tabItem.parent.hidden)
iQ(tabItem.container).show();
tabItem._reconnected = false;
tabItem._reconnect();
});
groupItem.close({immediately: true});
});
}