Closed Bug 1941269 Opened 2 months ago Closed 2 months ago

preview popup doesn't show the value of the hovered token

Categories

(DevTools :: Debugger, defect, P2)

defect

Tracking

(firefox-esr128 unaffected, firefox134 unaffected, firefox135 fixed, firefox136 fixed)

RESOLVED FIXED
136 Branch
Tracking Status
firefox-esr128 --- unaffected
firefox134 --- unaffected
firefox135 --- fixed
firefox136 --- fixed

People

(Reporter: nchevobbe, Assigned: bomsy)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

Steps to reproduce

  1. Open the console
  2. Evaluate the following
function a(value) {
  b(value).catch(console.error);
  debugger;
};

function b() {
  return new Promise(() => {});
}

a("foo")
  1. The debugger should pause, hover value on line 2

Expected results

The preview popup content is "foo"

Actual results

The popup shows content for the catch function


(updated STR with simpler steps)

this doesn't happen with devtools.debugger.features.codemirror-next set to false.
Reverting Bug 1874656 does fix the issue

Keywords: regression
Regressed by: 1874656

Set release status flags based on info from the regressing bug 1874656

:bomsy, since you are the author of the regressor, bug 1874656, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Thanks for catching! will take a look.

Severity: -- → S3
Flags: needinfo?(hmanilla)
Priority: -- → P2
Assignee: nobody → hmanilla
Attachment #9459089 - Attachment description: WIP: Bug 1941269 - [devtools] Fix matching the wrong value in the member expression → Bug 1941269 - [devtools] Fix matching the wrong value in the member expression r=#devtools
Status: NEW → ASSIGNED
Pushed by hmanilla@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/01fa330d2ecc [devtools] Fix matching the wrong value in the member expression r=devtools-reviewers,nchevobbe
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch

The patch landed in nightly and beta is affected.
:bomsy, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox135 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(hmanilla)

Comment on attachment 9459089 [details]
Bug 1941269 - [devtools] Fix matching the wrong value in the member expression r=#devtools

Beta/Release Uplift Approval Request

  • User impact if declined/Reason for urgency: User might see wrong values for certain tooltip previews in the debugger
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Small javascript code change.
  • String changes made/needed:
  • Is Android affected?: No
Flags: needinfo?(hmanilla)
Attachment #9459089 - Flags: approval-mozilla-beta?

Comment on attachment 9459089 [details]
Bug 1941269 - [devtools] Fix matching the wrong value in the member expression r=#devtools

Approved for 135.0b8.

Attachment #9459089 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Flags: in-testsuite+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: