Bug 1055499 - StyleEditor: Properly wait for the toolbox to be destroyed before ending test run and causing windows to leak. r=harth

This commit is contained in:
Sami Jaktholm 2014-08-20 02:02:00 -04:00
parent e66cd5c81d
commit a1e27faae0

View File

@ -53,10 +53,13 @@ function addTab(url) {
return def.promise;
}
function cleanup()
function* cleanup()
{
gPanelWindow = null;
while (gBrowser.tabs.length > 1) {
let target = TargetFactory.forTab(gBrowser.selectedTab);
yield gDevTools.closeToolbox(target);
gBrowser.removeCurrentTab();
}
}