Closed Bug 1111020 Opened 10 years ago Closed 10 years ago

UP/DOWN keys don't work to navigate the call tree in the new performance tool

Categories

(DevTools :: Performance Tools (Profiler/Timeline), defect)

defect
Not set
normal

Tracking

(firefox38 fixed)

RESOLVED FIXED
Firefox 38
Tracking Status
firefox38 --- fixed

People

(Reporter: vporof, Assigned: jsantell)

References

Details

Attachments

(1 file, 1 obsolete file)

No description provided.
Blocks: perf-tool-v2
This is more annoying that beetlejuice, damn it.
Attached patch 1111020-fix-key-events.patch (obsolete) — Splinter Review
Assignee: nobody → jsantell
Status: NEW → ASSIGNED
Attachment #8560692 - Flags: review?(vporof)
Comment on attachment 8560692 [details] [diff] [review] 1111020-fix-key-events.patch Review of attachment 8560692 [details] [diff] [review]: ----------------------------------------------------------------- Wow ::: browser/devtools/performance/test/browser_perf-events-calltree.js @@ +34,5 @@ > + fireKey("VK_DOWN"); > + > + JsCallTreeView.off("focus", focusEvent); > + > + ok(focus > 1, "several focus events are fired for the js calltree."); Shouldn't we check for an exact number here? @@ +52,5 @@ > + fireKey("VK_UP"); > + fireKey("VK_DOWN"); > + > + MemoryCallTreeView.off("focus", focusEvent); > + ok(focus > 1, "several focus events are fired for the memory calltree."); Ditto. ::: browser/devtools/shared/widgets/AbstractTreeItem.jsm @@ +447,5 @@ > > switch (e.keyCode) { > case e.DOM_VK_UP: > this._focusPrevNode(); > + e.preventDefault(); Huh? Why?
Attachment #8560692 - Flags: review?(vporof) → review+
Comment on attachment 8560692 [details] [diff] [review] 1111020-fix-key-events.patch Review of attachment 8560692 [details] [diff] [review]: ----------------------------------------------------------------- ::: browser/devtools/performance/test/browser_perf-events-calltree.js @@ +34,5 @@ > + fireKey("VK_DOWN"); > + > + JsCallTreeView.off("focus", focusEvent); > + > + ok(focus > 1, "several focus events are fired for the js calltree."); Will we always have sufficient enough call tree items? That's my concern as the stack generated isn't deterministic, I believe ::: browser/devtools/shared/widgets/AbstractTreeItem.jsm @@ +447,5 @@ > > switch (e.keyCode) { > case e.DOM_VK_UP: > this._focusPrevNode(); > + e.preventDefault(); Not necessary for this patch, but to prevent sideeffects in other views from occuring possibly -- want me to remove?
(In reply to Jordan Santell [:jsantell] [@jsantell] from comment #4) > Comment on attachment 8560692 [details] [diff] [review] > 1111020-fix-key-events.patch > > Review of attachment 8560692 [details] [diff] [review]: > ----------------------------------------------------------------- > > ::: browser/devtools/performance/test/browser_perf-events-calltree.js > @@ +34,5 @@ > > + fireKey("VK_DOWN"); > > + > > + JsCallTreeView.off("focus", focusEvent); > > + > > + ok(focus > 1, "several focus events are fired for the js calltree."); > > Will we always have sufficient enough call tree items? That's my concern as > the stack generated isn't deterministic, I believe > Sounds like we should populate the tree manually. > ::: browser/devtools/shared/widgets/AbstractTreeItem.jsm > @@ +447,5 @@ > > > > switch (e.keyCode) { > > case e.DOM_VK_UP: > > this._focusPrevNode(); > > + e.preventDefault(); > > Not necessary for this patch, but to prevent sideeffects in other views from > occuring possibly -- want me to remove? "possibly" is a weird reason. I'd steer clear from changes like these, but it's up to you.
Manually populating the call tree view, and removed the preventDefaults
Attachment #8560692 - Attachment is obsolete: true
Attachment #8561584 - Flags: review+
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 38
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: