Bug 1193747 - Remove link to inspector error in Browser Console. r=pbro
MozReview-Commit-ID: 1ek1pIFeKg2
--- a/devtools/client/webconsole/console-output.js
+++ b/devtools/client/webconsole/console-output.js
@@ -3256,18 +3256,18 @@ Widgets.ObjectRenderers.add({
throw new Error("The object cannot be linked to the inspector as it " +
"isn't an element node");
}
// Checking the presence of a toolbox
let target = this.message.output.toolboxTarget;
this.toolbox = gDevTools.getToolbox(target);
if (!this.toolbox) {
- throw new Error("The object cannot be linked to the inspector without a " +
- "toolbox");
+ // In cases like the browser console, there is no toolbox.
+ return;
}
// Checking that the inspector supports the node
yield this.toolbox.initInspector();
this._nodeFront = yield this.toolbox.walker.getNodeActorFromObjectActor(this.objectActor.actor);
if (!this._nodeFront) {
throw new Error("The object cannot be linked to the inspector, the " +
"corresponding nodeFront could not be found");