Closed Bug 1590824 Opened 5 years ago Closed 5 years ago

Jump to definition button jumps to buggy view-source: link

Categories

(DevTools :: Console, defect, P2)

72 Branch
defect

Tracking

(firefox-esr68 unaffected, firefox70 unaffected, firefox71 verified, firefox72 verified)

VERIFIED FIXED
Firefox 72
Tracking Status
firefox-esr68 --- unaffected
firefox70 --- unaffected
firefox71 --- verified
firefox72 --- verified

People

(Reporter: wartmanm, Assigned: wartmanm)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0

Steps to reproduce:

  1. Go to https://firefox-dev.tools/debugger-examples/examples/pythagorean/
  2. Open pythagorean.js and pretty-print it
  3. Type math in the console
  4. 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.

Regressed by: 1433373

(aside, love how we matched our bug titles so well)

Keywords: regression
See Also: → 1589346

I can't reproduce for some reason?

Priority: -- → P2

Reproduced on https://debugger-pretty-print-events-1532240.glitch.me/ with

  1. pretty print compressed.js
  2. log setup
  3. 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?

(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.

Attachment #9104770 - Attachment description: Don't pass sourceId in jumpToDefinitionButton event listener → Bug 1590824 - Don't pass sourceId in jumpToDefinitionButton event listener. r=nchevobbe.
Assignee: nobody → wartmanm
Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/df999d1f7c6e
Don't pass sourceId in jumpToDefinitionButton event listener. r=nchevobbe.
Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 72

Is this something we should consider uplifting to Beta or can this ride Fx72 to release?

Flags: needinfo?(nchevobbe)
Flags: in-testsuite+

yes, I'll request the uplift right away

Flags: needinfo?(nchevobbe)

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:
Attachment #9104770 - Flags: approval-mozilla-beta?
Flags: qe-verify+

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.

Attachment #9104770 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
QA Whiteboard: [qa-triaged]

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!

QA Whiteboard: [qa-triaged]
Flags: needinfo?(wartmanm)
QA Whiteboard: [qa-triaged]

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:

  1. Open the console on https://debugger-pretty-print-events-1532240.glitch.me/ (ctrl-shift-K on Windows/Linux, cmd-option-K on Mac)
  2. Enter setup in the console
  3. The console will reply with function setup() and a jump-to-definition button. Clicking it should take you to line 17 of compressed.js
  4. Pretty-print compressed.js ({} icon in the lower left)
  5. Go back to the console
  6. 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 a view-source: URL and pop up a "The specified line was not found" message.

I hope this helps, thank you for verifying!

Flags: needinfo?(wartmanm)

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.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: