Bug 1142114: Fix broken cases of devtools calling once. r=jsantell
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user