Bug 1277834 - Add missing promise rejection handler to breadcrumbs; r=jdescottes
MozReview-Commit-ID: C7WDd3CsMSX
--- a/devtools/client/inspector/breadcrumbs.js
+++ b/devtools/client/inspector/breadcrumbs.js
@@ -881,11 +881,16 @@ HTMLBreadcrumbs.prototype = {
this.updateSelectors();
// Make sure the selected node and its neighbours are visible.
waitForTick().then(() => {
this.scroll();
this.inspector.emit("breadcrumbs-updated", this.selection.nodeFront);
doneUpdating();
+ }, e => {
+ // Only log this as an error if we haven't been destroyed in the meantime.
+ if (!this.isDestroyed) {
+ console.error(e);
+ }
});
}
};