Backed out changeset 62b6738695de (bug 1432037) for talos damp crashes on a CLOSED TREE

This commit is contained in:
Andreea Pavel 2018-02-12 20:53:54 +02:00
Родитель 62e953a6b6
Коммит b4467319f9
1 изменённых файлов: 2 добавлений и 7 удалений

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

@ -278,13 +278,8 @@ Damp.prototype = {
});
},
async closeCurrentTab() {
let onTransition = new Promise(done => {
this._win.gBrowser.tabContainer.addEventListener("transitionend", done,
{ once: true });
});
closeCurrentTab() {
this._win.BrowserCloseTabOrWindow();
await onTransition;
return this._win.gBrowser.selectedTab;
},
@ -912,7 +907,7 @@ async _consoleOpenWithCachedMessagesTest() {
},
async testTeardown(url) {
await this.closeCurrentTab();
this.closeCurrentTab();
// Force freeing memory now so that it doesn't happen during the next test
await garbageCollect();