Closed Bug 1909899 Opened 4 months ago Closed 4 months ago

Zooming on traces with only one DOM event is buggy

Categories

(DevTools :: Debugger, enhancement)

enhancement

Tracking

(firefox130 fixed)

RESOLVED FIXED
130 Branch
Tracking Status
firefox130 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

When the trace displays a unique call tree, for example when tracing:
data:text/html,<script>window.onclick = foo; function foo() {}</script>

Zooming will quickly trigger the following exception:
can't access property "length", this.props.getChildren(...) is undefined
And before reaching this exception, the tree may display more than the expected number of elements.
This isn't trivial to spot without enabling the stdout logs of Tracer.js and looking at start and end indexes.

Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED

When zooming past the last top trace, i.e. on the last call tree,
we should be using the startIndex of unique top trace and nothing else.

The end index is meant to be exclusing (while the start is inclusive)

Blocks: 1909920
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5325ad7cd570 [devtools] Ensure always rendering one trace when zooming on the end of the record. r=devtools-reviewers,nchevobbe https://hg.mozilla.org/integration/autoland/rev/20fb070ee3ca [devtools] Fix zooming on the last traced call tree. r=devtools-reviewers,nchevobbe https://hg.mozilla.org/integration/autoland/rev/c15579c965d5 [devtools] Do not show unexpected children in traces. r=devtools-reviewers,nchevobbe
Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 130 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: