Bug 1142114: Fix broken cases of devtools calling once. r=jsantell

This commit is contained in:
Dave Townsend
2015-03-11 10:00:25 -07:00
parent 9fbebea5ad
commit 214585490e
2 changed files with 5 additions and 4 deletions

View File

@@ -3209,9 +3209,10 @@ Widgets.ObjectRenderers.add({
let isAttached = yield this.toolbox.walker.isInDOMTree(this._nodeFront);
if (isAttached) {
let onReady = this.toolbox.inspector.once("inspector-updated");
let onReady = promise.defer();
this.toolbox.inspector.once("inspector-updated", onReady.resolve);
yield this.toolbox.selection.setNodeFront(this._nodeFront, "console");
yield onReady;
yield onReady.promise;
} else {
throw null;
}