Event popup's "Open in Debugger" does not jump to correct file for source mapped (minified) js files
Categories
(DevTools :: Inspector, defect, P2)
Tracking
(Not tracked)
People
(Reporter: nachtigall, Unassigned)
References
Details
(Whiteboard: [btpp-fix-later][dt-q])
Attachments
(1 file)
90.94 KB,
image/png
|
Details |
Comment 1•9 years ago
|
||
Updated•8 years ago
|
Comment 2•8 years ago
|
||
Comment 3•8 years ago
|
||
Updated•7 years ago
|
Updated•6 years ago
|
Comment 4•6 years ago
|
||
Looks like it was duped by accident and never re-opened. Mike; could you help here to confirm if the work is in Debugger or the Inspector? It is important to finally get to a good level of source maps and this issue keeps popping up in feedback and breaks the smooth interplay between panels.
Martin, we are still confirming if this is an issue in the Debugger or Inspector – but would this make a good bug for the quality backlog?
Comment 5•6 years ago
|
||
Agreed, I added it to the backlog. Though if it's not an inspector bug we may remove it again from there.
Tom fixed this in bug 1333352 and it works just fine now.
Comment 7•6 years ago
|
||
Mike, can you confirm where this would work?
This is not working for me on sites with source maps, send.firefox.com, reddit.com or github.com . All events link to the same file and position; even though the event handler inline preview shows the correct handler source.
(In reply to :Harald Kirschner :digitarald from comment #7)
Created attachment 9051776 [details]
image.pngMike, can you confirm where this would work?
This is not working for me on sites with source maps, send.firefox.com, reddit.com or github.com . All events link to the same file and position; even though the event handler inline preview shows the correct handler source.
It seems like we at the very least have edge cases... re-opening.
Comment 9•6 years ago
•
|
||
Made a simpler test case: https://amusing-dove.glitch.me/
STR:
- Open Devtools
- Inspect the first button which has an JS event attached
- Click on the "ev" button to see the event popup
- Click on "Open in Debugger" icon
I am unsure about this having just edge cases. I have not seen it working for any source mapped case.
Comment 10•6 years ago
•
|
||
To clarify:
Inline code preview in the events panel works and shows the correct handler. Resolving the filename and location works and shows the original location.
Clicking the link to the Debugger is what isn't working and send to the wrong file (generated file instead of original) with the correct original location. In the example, the original location of index.js:13
jumps to the generated file client.js:13
.
Comment 11•6 years ago
|
||
I'm going to close this in favor of https://bugzilla.mozilla.org/show_bug.cgi?id=1538397 since this seems like a new regression separate from the older issue.
Description
•