Closed Bug 1872715 Opened 1 year ago Closed 1 year ago

Preview popup is displayed for primitive tokens

Categories

(DevTools :: Debugger, defect, P3)

defect

Tracking

(firefox123 fixed)

RESOLVED FIXED
123 Branch
Tracking Status
firefox123 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 2 obsolete files)

We're showing the popup for primitives (meaning hovering "booh" will show a popup with "booh" in it, not really useful)

Severity: -- → S3
Priority: -- → P3

In Popup, we were only adding/removing the highlight on hovered token on mount/unmount.
But it can happen that the component gets updated (e.g. when the user moves quickly
between valid tokens).
In such case, we want to remove the highlighted class on all elements that it was
set on, and only add it back on the "preview target".
We also want to update the Popover position so it points to the actual token the
preview was computed for.

Depends on D197565

I'm going to split this into multiple bugs so it's easier to follow

Summary: Preview popup can be frustrating → Preview popup is displayed for primitive tokens

Comment on attachment 9370875 [details]
Bug 1872715 - [devtools] Update token highlight and popup position when Popup updates. r=#devtools-reviewers.

Revision D197582 was moved to bug 1873147. Setting attachment 9370875 [details] to obsolete.

Attachment #9370875 - Attachment is obsolete: true

Comment on attachment 9370882 [details]
Bug 1872715 - [devtools] Don't show preview popup if evaluated expression has SyntaxError. r=#devtools-reviewers.

Revision D197585 was moved to bug 1873149. Setting attachment 9370882 [details] to obsolete.

Attachment #9370882 - Attachment is obsolete: true
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1a465a2f7a02 [devtools] Don't show preview popup for primitive tokens. r=devtools-reviewers,ochameau.
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 123 Branch
Regressions: 1875461
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: