Jump to definition button jumps to buggy view-source: link
Categories
(DevTools :: Console, defect, P2)
Tracking
(firefox-esr68 unaffected, firefox70 unaffected, firefox71 verified, firefox72 verified)
Tracking | Status | |
---|---|---|
firefox-esr68 | --- | unaffected |
firefox70 | --- | unaffected |
firefox71 | --- | verified |
firefox72 | --- | verified |
People
(Reporter: wartmanm, Assigned: wartmanm)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file)
(deleted),
text/x-phabricator-request
|
pascalc
:
approval-mozilla-beta+
|
Details |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0
Steps to reproduce:
- Go to https://firefox-dev.tools/debugger-examples/examples/pythagorean/
- Open pythagorean.js and pretty-print it
- Type
math
in the console - Click the jump-to-definition button
Actual results:
You'll be taken to a new view-source: tab showing the page source.
Expected results:
You should be taken to the pretty-printed definition of math
in the debugger.
Comment 3•5 years ago
|
||
Reproduced on https://debugger-pretty-print-events-1532240.glitch.me/ with
- pretty print compressed.js
- log
setup
- jump to
setup
definition
Probably same as bug 1589346.
It is the same, yeah. I'm sorry for the bad steps to reproduce it. I'm guessing I should fix the bug the same way, by not passing sourceId?
Comment 5•5 years ago
|
||
(In reply to mattheww from comment #4)
It is the same, yeah. I'm sorry for the bad steps to reproduce it. I'm guessing I should fix the bug the same way, by not passing sourceId?
yeah probably.
Updated•5 years ago
|
Updated•5 years ago
|
Comment 8•5 years ago
|
||
bugherder |
Comment 9•5 years ago
|
||
Is this something we should consider uplifting to Beta or can this ride Fx72 to release?
Comment 11•5 years ago
|
||
Comment on attachment 9104770 [details]
Bug 1590824 - Don't pass sourceId in jumpToDefinitionButton event listener. r=nchevobbe.
Beta/Release Uplift Approval Request
- User impact if declined: Clicking on a "jump to definition" icon in the console might not navigate the user to the debugger, but open a weird, blank tab.
This is a regression and the fix is similar to the one of Bug 1433373, that was already uplifted. - Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: No
- Needs manual test from QE?: Yes
- If yes, steps to reproduce: See Comment 3
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Small devtools only change, only affecting logged functions whose source have been prettified.
- String changes made/needed:
Updated•5 years ago
|
Comment 12•5 years ago
|
||
Comment on attachment 9104770 [details]
Bug 1590824 - Don't pass sourceId in jumpToDefinitionButton event listener. r=nchevobbe.
Fix for a 71 regression in devtools, low risk of causing worse regressions, uplift approved for 71 beta 8, thanks.
Comment 13•5 years ago
|
||
bugherder uplift |
Updated•5 years ago
|
Comment 14•5 years ago
|
||
I am attempting to verify the fix of this bug, but I do not understand the steps to reproduce. Can you help enlighten my confusion? Keep in mind that the technical level should be low enough that pretty much anyone should be able to reproduce it using the steps provided.
Thank you for your contribution!
Updated•5 years ago
|
Assignee | ||
Comment 15•5 years ago
|
||
I'm really sorry about that, I know my steps in the bug report were not great.
The steps are pretty much the same as for bug 1589346, but using a function logged to the console:
- Open the console on https://debugger-pretty-print-events-1532240.glitch.me/ (ctrl-shift-K on Windows/Linux, cmd-option-K on Mac)
- Enter
setup
in the console - The console will reply with
function setup()
and a jump-to-definition button. Clicking it should take you to line 17 of compressed.js - Pretty-print compressed.js (
{}
icon in the lower left) - Go back to the console
- Click the jump-to-definition button again. It should take you to line 150787 of the pretty-printed compressed.js.
Versions with the regression will instead open a new tab with aview-source:
URL and pop up a "The specified line was not found" message.
I hope this helps, thank you for verifying!
Comment 16•5 years ago
|
||
Using the steps provided, I have reproduced the issue in Nightly v72.0a1 from 2019-10-23 and in Beta v71.0b7.
I have verified this fix in Nightly v72.0a1 from 2019-11-07 and in Beta Candidate v71.0b8 in Windows 10 and Mac OS 10.14.6.
Updated•3 years ago
|
Description
•