Closed Bug 1359763 Opened 7 years ago Closed 6 years ago

Persist inspector sidebar accordion's states


(DevTools :: Inspector, enhancement, P3)



(firefox55 fixed)

Firefox 55
Tracking Status
firefox55 --- fixed


(Reporter: pbro, Assigned: gl)




(1 file)

There are 2 accordions in the inspector's sidebars: one in the computed tab, to hide/show the box-model, and one in the layout tab, to hide/show the box-model and the grid panel.

It would be great if these could persist their states, so you wouldn't have to constantly close the ones you don't care about.
See Jen's feedback about this in bug 1345300 comment 6.
Severity: normal → enhancement
Priority: -- → P3
Blocks: 1347964
Assignee: nobody → tigleym
Assignee: tigleym → nobody
Assignee: nobody → gl
Comment on attachment 8873719 [details]
Bug 1359763 - Persist the box model and grid panel's accordion states.

I tested this locally, works like a charm!
I honestly have nothing to say about the code changes here. If try is green, then I'm happy too.

Any thoughts about the following use case though: should the box model in the layout view be collapsed by default if there's a grid on the page?
I can see 2 problems with it: if we already persisted a state, not restoring it in this case would break the expectations. And All other accordions in the app are opened by default (I think).
Of course the idea behind doing something like is that if there's a grid and people are switching to the layout panel for the first time, and they have a rather tiny toolbox, they won't even see the grid section at all. 
Another approach: make the grid section first, and box model section second. Simple, but effective. Knowing that the box model is already in the computed view, maybe we can afford to do this.
Attachment #8873719 - Flags: review?(pbrosset) → review+
Pushed by
Persist the box model and grid panel's accordion states. r=pbro
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 55
Because I have ideas that may become new actions to take, I opened a new ticket with my thoughts here:
Depends on: 1369918
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.