Closed
Bug 1058167
Opened 11 years ago
Closed 11 years ago
Split console command button is not active when initially opened
Categories
(DevTools :: Framework, defect)
DevTools
Framework
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 34
People
(Reporter: bgrins, Assigned: bgrins)
References
Details
Attachments
(1 file)
|
6.08 KB,
patch
|
jwalker
:
review+
|
Details | Diff | Splinter Review |
STR:
Open toolbox
Open split console
Close toolbox
Reopen toolbox
Notice that the split console is opened, but the command button is not active
| Assignee | ||
Comment 1•11 years ago
|
||
This is because the _buildButtons call happens before the call to openSplitConsole, so the call to isChecked returns false
| Assignee | ||
Comment 2•11 years ago
|
||
Assignee: nobody → bgrinstead
Status: NEW → ASSIGNED
| Assignee | ||
Updated•11 years ago
|
Attachment #8478710 -
Flags: review?(jwalker)
| Assignee | ||
Comment 3•11 years ago
|
||
Comment on attachment 8478710 [details] [diff] [review]
split-cmd-button.patch
Review of attachment 8478710 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/devtools/webconsole/console-commands.js
@@ -9,5 @@
> const { gDevTools } = require("resource:///modules/devtools/gDevTools.jsm");
>
> -const eventEmitter = new EventEmitter();
> -
> -gDevTools.on("toolbox-ready", (e, toolbox) => {
Waiting for toolbox-ready wasn't working because by then the 'split-console' event had already fired. That's why it's been moved into the onChange handler (which is fired during buildButtons, before the split-console event fires)
Updated•11 years ago
|
Attachment #8478710 -
Flags: review?(jwalker) → review+
| Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 4•11 years ago
|
||
Comment 5•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 34
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•