diff --git a/browser/devtools/styleinspector/rule-view.js b/browser/devtools/styleinspector/rule-view.js index 6608d996d421..b15272c3907a 100644 --- a/browser/devtools/styleinspector/rule-view.js +++ b/browser/devtools/styleinspector/rule-view.js @@ -234,7 +234,14 @@ ElementStyle.prototype = { 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; return this.populated; },