Closed
Bug 1109764
Opened 11 years ago
Closed 11 years ago
Selecting a details view pane should show the button as "checked"
Categories
(DevTools :: Performance Tools (Profiler/Timeline), defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 37
People
(Reporter: jsantell, Assigned: jsantell)
References
Details
Attachments
(1 file)
|
3.13 KB,
patch
|
vporof
:
review+
|
Details | Diff | Splinter Review |
When toggling panes in the details view (calltree, waterfall), the buttons do not reflect what pane is currently selected, and have no "checked" or "on" state.
| Assignee | ||
Updated•11 years ago
|
Blocks: perf-tool-v2
Comment 1•11 years ago
|
||
When I tested the patch in bug 1077458, it did have a checked state.
| Assignee | ||
Comment 2•11 years ago
|
||
Yeah, I thought it was working previously too -- maybe some of the newer CSS changes undid this? Should probably add a test for state selection due to this
Comment 3•11 years ago
|
||
I don't think it's related to recent CSS changes, since the checked state works fine for the record button.
| Assignee | ||
Comment 4•11 years ago
|
||
Ah, looks like during the last steps of reviews, we changed it to a deckbox and lost some of the checked features by default.
| Assignee | ||
Comment 5•11 years ago
|
||
Comment 6•11 years ago
|
||
Comment on attachment 8534635 [details] [diff] [review]
1109764-fix-button-toggle-perf.patch
Review of attachment 8534635 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/devtools/performance/test/browser_perf-details.js
@@ +30,5 @@
> }
>
> function checkViews (DetailsView, doc, currentView) {
> + for (let viewName in DetailsView.viewIndexes) {
> + let button = doc.querySelector(`toolbarbutton[data-view="${viewName}"]`);
Very nice.
::: browser/devtools/performance/views/details.js
@@ +50,5 @@
> + if (button.getAttribute("data-view") === selectedView)
> + button.setAttribute("checked", true);
> + else
> + button.removeAttribute("checked");
> + }
Hipster nit: a <tabbox> seems more semantic here, instead of "buttons above a deck", but you really shouldn't listen to me.
Attachment #8534635 -
Flags: review?(vporof) → review+
| Assignee | ||
Comment 7•11 years ago
|
||
<tabbox> could work too, but figured we'd also have other options in that toolbar as well, so this'll give us flexibility until we iron out exactly everything we need. Although we do have several areas with several subviews each, so we should probably make all that consistent atleast. We should review that once both OVERVIEW and DETAILS have subviews.
| Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 8•11 years ago
|
||
Keywords: checkin-needed
Whiteboard: [fixed-in-fx-team]
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 37
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•