Webconsole's onViewSourceInDebugger doesn't pass column number to debugger panel when opening a source
Categories
(DevTools :: Console, enhancement, P2)
Tracking
(firefox68 fixed)
Tracking | Status | |
---|---|---|
firefox68 | --- | fixed |
People
(Reporter: ochameau, Assigned: pong7219, Mentored)
References
Details
(Keywords: good-first-bug)
Attachments
(1 file, 2 obsolete files)
The code over here:
https://searchfox.org/mozilla-central/rev/92d11a33250a8e368c8ca3e962e15ca67117f765/devtools/client/shared/components/reps/reps.js#6844-6848
props.onViewSourceInDebugger({
url: filename,
line: lineNumber,
column: columnNumber
});
Pass a column
attribute, but that isn't implemented in onViewSourceInDebugger
:
https://searchfox.org/mozilla-central/rev/92d11a33250a8e368c8ca3e962e15ca67117f765/devtools/client/webconsole/webconsole-wrapper.js#261-270
onViewSourceInDebugger: frame => {
this.toolbox.viewSourceInDebugger(
frame.url, frame.line, frame.sourceId
).then(() => {
this.telemetry.recordEvent(
"jump_to_source", "webconsole",
null, { "session_id": this.toolbox.sessionId }
);
this.webConsoleUI.emit("source-in-debugger-opened");
});
I'll make this bug depend on bug 1531826 as it is already in process of modifying toolbox's viewSourceInDebugger
function.
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
Hi everyone,
Not sure if this is already being done, but I'm available to be assigned this issue :)
Thanks
Comment 2•5 years ago
|
||
Hello Mellina, thanks for offering help!
I'm assigning the bug to you.
If you don't have setup the work environment yet, you can have a look at http://docs.firefox-dev.tools/getting-started/ . Make sure to choose "Artifact builds" when asked to, as it's much faster to work with those.
Don't hesitate to ask any question you might have, here or on Slack :)
Assignee | ||
Comment 3•5 years ago
|
||
Hi Nicolas,
Thanks :) I'll start working on it today and will have updates later.
Assignee | ||
Comment 4•5 years ago
|
||
Pass on column from props.onViewSourceInDebugger (///devtools/client/shared/components/reps/reps.js:6844//) to
//devtools/client/webconsole/webconsole-wrapper.js:267// as frame.column
Assignee | ||
Comment 5•5 years ago
|
||
Hi everyone,
I don't know who is reviewing, so I have tagged the reporter and Nicolas.
I tried testing (mochitest and console.log) and none worked, so I'm not sure if that was successful. Please let me know if that was not what was requested.
Thanks!
Updated•5 years ago
|
Assignee | ||
Comment 6•5 years ago
|
||
Assignee | ||
Comment 7•5 years ago
|
||
Depends on D23364
Assignee | ||
Comment 8•5 years ago
|
||
Hi Nicolas,
I have sent a review, but in different Phabricator links :/ sorry about that.
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Comment 10•5 years ago
|
||
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/312a73dcfb90 Webconsole's onViewSourceInDebugger doesn't pass column number to debugger panel when opening a source. .
Comment 11•5 years ago
|
||
bugherder |
Description
•