mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
e66cd5c81d
commit
a1e27faae0
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user