Bug 1294355 - Pass correct arguments to openLocationInDebugger in console stack trace r?bgrins
MozReview-Commit-ID: KvSZ3fi5Kne
--- a/devtools/client/webconsole/console-output.js
+++ b/devtools/client/webconsole/console-output.js
@@ -3546,35 +3546,28 @@ Widgets.Stacktrace = function (message,
Widgets.Stacktrace.prototype = extend(Widgets.BaseWidget.prototype, {
/**
* The stackframes received from the server.
* @type array
*/
stacktrace: null,
- onViewSourceInDebugger(frame) {
- this.output.openLocationInDebugger({
- url: frame.source,
- line: frame.line
- });
- },
-
render() {
if (this.element) {
return this;
}
let result = this.element = this.document.createElementNS(XHTML_NS, "div");
result.className = "stacktrace devtools-monospace";
if (this.stacktrace) {
this.output.owner.ReactDOM.render(this.output.owner.StackTraceView({
stacktrace: this.stacktrace,
- onViewSourceInDebugger: frame => this.onViewSourceInDebugger(frame)
+ onViewSourceInDebugger: frame => this.output.openLocationInDebugger(frame)
}), result);
}
return this;
}
});
/**