mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 09:45:41 +00:00
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:
parent
6125a405c7
commit
02f3f62d9c
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user