зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1161072 - Prevent "no such actor" exception from style inspector during toolbox shutdown. r=pbrosset
This commit is contained in:
Родитель
a16b27a304
Коммит
bcdcfd3253
|
@ -234,7 +234,14 @@ ElementStyle.prototype = {
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
});
|
});
|
||||||
}).then(null, promiseWarn);
|
}).then(null, e => {
|
||||||
|
// populate is often called after a setTimeout,
|
||||||
|
// the connection may already be closed.
|
||||||
|
if (this.destroyed) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
return promiseWarn(e);
|
||||||
|
});
|
||||||
this.populated = populated;
|
this.populated = populated;
|
||||||
return this.populated;
|
return this.populated;
|
||||||
},
|
},
|
||||||
|
|
Загрузка…
Ссылка в новой задаче