Closed
Bug 871630
Opened 12 years ago
Closed 7 years ago
Add the collapse/expand button to the Console toolbar to show/hide the VariablesView
Categories
(DevTools :: Console, defect, P3)
DevTools
Console
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: rcampbell, Unassigned)
References
Details
Attachments
(1 file, 1 obsolete file)
we should have the control from Debugger and Netmonitor to collapse and expand the sidebar.
Reporter | ||
Comment 1•12 years ago
|
||
Comment 2•12 years ago
|
||
\o/
Reporter | ||
Comment 3•12 years ago
|
||
Reporter | ||
Updated•12 years ago
|
Attachment #748934 -
Attachment is obsolete: true
Reporter | ||
Updated•12 years ago
|
Attachment #748984 -
Flags: review?(mihai.sucan)
Comment 4•12 years ago
|
||
Comment on attachment 748984 [details] [diff] [review]
Add the collapse/expand button to the Console toolbar to show/hide the VariablesView
Review of attachment 748984 [details] [diff] [review]:
-----------------------------------------------------------------
Thank you for the patch.
One problem: the toggle button doesn't work as a toggle. After close it doesn't reopen. Also, shouldn't we make the button disabled until the first sidebar open? Or something...
One nit: the test does more than needed. It could be simpler: only execute inspect(window), wait for variablesview-fetched, click the collapse sidebar button and wait for the sidebar-closed event.
::: browser/devtools/webconsole/test/browser_bug_871630_variable_view_close_on_button.js
@@ +2,5 @@
> + * Any copyright is dedicated to the Public Domain.
> + * http://creativecommons.org/publicdomain/zero/1.0/
> + */
> +
> +// Check that the variables view sidebar can be closed by pressing Escape in the
Escape?
@@ +91,5 @@
> +
> +function onFooFound(aResults)
> +{
> + gJSTerm.once("sidebar-closed", finishTest);
> + let butten = gWebConsole.ui.rootElement.querySelector("#instruments-pane-toggle");
butten? Nice name. :)
::: browser/devtools/webconsole/webconsole.js
@@ +490,5 @@
> this.jsterm.clearOutput(true);
> }.bind(this));
>
> + let collapseButton = doc.getElementById("instruments-pane-toggle");
> + collapseButton.addEventListener("mousedown", () => { this.jsterm._sidebarDestroy(); }, false);
I think we prefer "click" here. Most UIs react to clicks - not when you first press any mouse button.
Attachment #748984 -
Flags: review?(mihai.sucan)
Reporter | ||
Comment 5•12 years ago
|
||
(In reply to Mihai Sucan [:msucan] from comment #4)
> Comment on attachment 748984 [details] [diff] [review]
...
+ let collapseButton = doc.getElementById("instruments-pane-toggle");
> > + collapseButton.addEventListener("mousedown", () => { this.jsterm._sidebarDestroy(); }, false);
>
> I think we prefer "click" here. Most UIs react to clicks - not when you
> first press any mouse button.
the other instances of this button use "mousedown" for some reason. Victor?
Flags: needinfo?(vporof)
Comment 6•12 years ago
|
||
(In reply to Rob Campbell [:rc] (:robcee) from comment #5)
>
> the other instances of this button use "mousedown" for some reason. Victor?
Debugger is (used to be?) a special case because certain actions used to take longer to finish (for various reasons, like source editor being slow etc.) and mousedown made everything feel snappier in certain places. This was especially the case with the sidebar at some point, however I don't think it's still mandatory.
Flags: needinfo?(vporof)
Updated•12 years ago
|
Priority: -- → P3
Updated•7 years ago
|
Product: Firefox → DevTools
Comment 8•7 years ago
|
||
We don't have the variable view anymore on the console (there is a sidebar, and it has a close button).
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•