Closed
Bug 1947692
Opened 8 months ago
Closed 8 months ago
Can't navigate to function location of properties in preview popup
Categories
(DevTools :: Debugger, defect, P2)
Tracking
(firefox137 fixed)
RESOLVED
FIXED
137 Branch
| Tracking | Status | |
|---|---|---|
| firefox137 | --- | fixed |
People
(Reporter: hbenl, Assigned: hbenl)
References
(Regressed 1 open bug)
Details
Attachments
(1 file)
What were you doing?
Open devtools and navigate to this file:
<script>
function f() {}
const x = { f };
debugger;
</script>
Then hover over x and click the "Jump to definition" button for f.
What happened?
Nothing
What should have happened?
The definition of f should be highlighted.
| Assignee | ||
Comment 1•8 months ago
|
||
The cause seems to be https://searchfox.org/mozilla-central/source/devtools/client/debugger/src/components/Editor/Preview/Popup.js#153-161: the onViewSourceInDebugger function ignores the location that is passed to it and tries to open the location of the root object shown in the preview instead.
Updated•8 months ago
|
Severity: -- → S3
Priority: -- → P2
| Assignee | ||
Updated•8 months ago
|
Assignee: nobody → hbenl
Status: NEW → ASSIGNED
| Assignee | ||
Comment 2•8 months ago
|
||
Pushed by hbenl@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b81478edf348
[devtools] Fix jump-to-definition button for object properties in preview popups. r=ochameau,devtools-reviewers
Comment 4•8 months ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 8 months ago
status-firefox137:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 137 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•