Closed Bug 1947692 Opened 7 months ago Closed 6 months ago

Can't navigate to function location of properties in preview popup

Categories

(DevTools :: Debugger, defect, P2)

Firefox 137
defect

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.

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.

See Also: → 1932021
Severity: -- → S3
Priority: -- → P2
Assignee: nobody → hbenl
Status: NEW → ASSIGNED
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
Regressions: 1950193
Status: ASSIGNED → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 137 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: