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 314205 9250418b7304ecd8216aa74f0920a476b72b91cb
parent 314204 4195eaaa257e13a5de58a5d046bb707f7fade71b
child 314206 1e2642879de8f58efe366ccaedddafd4361c6777
child 314257 f398b9d4696e2152d2c3040aa89073ff60e5955d
push id20552
push userjlong@mozilla.com
push dateFri, 16 Sep 2016 15:00:02 +0000
treeherderfx-team@9250418b7304 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1303045
milestone51.0a1
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();
   }