Bug 1294355 - Pass correct arguments to openLocationInDebugger in console stack trace r=bgrins

MozReview-Commit-ID: KvSZ3fi5Kne

--HG--
extra : rebase_source : 6ed1f19de9124acdc1f3117fd8de6a9f9ceac023
This commit is contained in:
Jarda Snajdr 2016-08-18 09:36:45 +02:00
parent 6125a405c7
commit 02f3f62d9c

View File

@ -3551,13 +3551,6 @@ Widgets.Stacktrace.prototype = extend(Widgets.BaseWidget.prototype, {
*/
stacktrace: null,
onViewSourceInDebugger(frame) {
this.output.openLocationInDebugger({
url: frame.source,
line: frame.line
});
},
render() {
if (this.element) {
return this;
@ -3569,7 +3562,7 @@ Widgets.Stacktrace.prototype = extend(Widgets.BaseWidget.prototype, {
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);
}