Make the inline preview selectors check for the selected source
Categories
(DevTools :: Debugger, enhancement)
Tracking
(firefox133 fixed)
Tracking | Status | |
---|---|---|
firefox133 | --- | fixed |
People
(Reporter: ochameau, Assigned: ochameau)
References
Details
Attachments
(3 files)
Bug 1871500 review highlighted some discrepancies when using CodeMirror 6, where inlinepreviews for tracer are kept visible when opening any other document other than the one being traced.
https://phabricator.services.mozilla.com/D197118#7497696
We could strengthen the selectors around inline previews to include this logic of checking if the paused/traced location is matching the currently selected source. (That instead of having this logic being kept within mapStateToProps of the InlinePreviews React component)
Assignee | ||
Comment 1•1 year ago
|
||
This help stop passing the selected frame as argument and ensure we never try to fetch data for an outdated frame.
While doing this, I'm adding assertion after each async call to stop execution if we resumed or moved to another frame.
Assignee | ||
Comment 2•1 year ago
|
||
We were doing the check in the mapStateToProps, but only for pausing, not for tracing.
Let's do that consistantly from the selector.
Assignee | ||
Comment 3•1 year ago
|
||
This avoids having to pass the current thread from most callsites.
Even the leftovers, still passing a custom thread argument,
should probably be asserting that they are still relevant,
and be working against the currently selected thread.
Updated•9 months ago
|
https://hg.mozilla.org/mozilla-central/rev/09f4923c2d48
https://hg.mozilla.org/mozilla-central/rev/16f58009ebdc
https://hg.mozilla.org/mozilla-central/rev/a84faecace61
Description
•