Bug 1303045 - pass the line to highlight in debugger in `viewSourceInDebugger` r=me
authorJames Long <longster@gmail.com>
Fri, 16 Sep 2016 10:59:35 -0400
changeset 355517 9250418b7304ecd8216aa74f0920a476b72b91cb
parent 355516 4195eaaa257e13a5de58a5d046bb707f7fade71b
child 355518 f398b9d4696e2152d2c3040aa89073ff60e5955d
child 355571 1e2642879de8f58efe366ccaedddafd4361c6777
push id6570
push userraliiev@mozilla.com
push dateMon, 14 Nov 2016 12:26:13 +0000
treeherdermozilla-beta@f455459b2ae5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1303045
milestone51.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1303045 - pass the line to highlight in debugger in `viewSourceInDebugger` r=me
devtools/client/shared/view-source.js
--- a/devtools/client/shared/view-source.js
+++ b/devtools/client/shared/view-source.js
@@ -57,17 +57,17 @@ exports.viewSourceInDebugger = Task.asyn
   let debuggerAlreadyOpen = toolbox.getPanel("jsdebugger");
   let { panelWin: dbg } = yield toolbox.loadTool("jsdebugger");
 
   // New debugger frontend
   if (Services.prefs.getBoolPref("devtools.debugger.new-debugger-frontend")) {
     yield toolbox.selectTool("jsdebugger");
     // TODO: Properly handle case where source will never exist in the
     // debugger
-    dbg.actions.selectSourceURL(sourceURL);
+    dbg.actions.selectSourceURL(sourceURL, { line: sourceLine });
     return true;
   }
 
   // Old debugger frontend
   if (!debuggerAlreadyOpen) {
     yield dbg.DebuggerController.waitForSourcesLoaded();
   }