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 314232 9250418b7304ecd8216aa74f0920a476b72b91cb
parent 314231 4195eaaa257e13a5de58a5d046bb707f7fade71b
child 314233 f398b9d4696e2152d2c3040aa89073ff60e5955d
child 314286 1e2642879de8f58efe366ccaedddafd4361c6777
push id30712
push userkwierso@gmail.com
push dateFri, 16 Sep 2016 20:57:43 +0000
treeherdermozilla-central@f398b9d4696e [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();
   }