Closed
Bug 581231
Opened 14 years ago
Closed 14 years ago
Add the Close button to the bottom of the Console
Categories
(DevTools :: General, defect)
DevTools
General
Tracking
(blocking2.0 -)
VERIFIED
FIXED
Firefox 4.0b7
Tracking | Status | |
---|---|---|
blocking2.0 | --- | - |
People
(Reporter: pcwalton, Assigned: pcwalton)
References
Details
(Whiteboard: [kd4b6] [patchclean:0908] [Input])
Attachments
(8 files, 5 obsolete files)
2.32 KB,
patch
|
dietrich
:
review+
ddahl
:
feedback+
|
Details | Diff | Splinter Review |
2.83 KB,
patch
|
dietrich
:
review+
ddahl
:
feedback+
|
Details | Diff | Splinter Review |
73.11 KB,
image/png
|
Details | |
4.40 KB,
patch
|
limi
:
ui-review+
benjamin
:
approval2.0+
|
Details | Diff | Splinter Review |
1.74 KB,
patch
|
dietrich
:
review+
msucan
:
feedback+
dietrich
:
approval2.0+
|
Details | Diff | Splinter Review |
2.71 KB,
patch
|
dietrich
:
review+
msucan
:
feedback+
dietrich
:
approval2.0+
|
Details | Diff | Splinter Review |
3.15 KB,
patch
|
dietrich
:
approval2.0+
|
Details | Diff | Splinter Review |
4.48 KB,
patch
|
Details | Diff | Splinter Review |
The Console's input field needs to be surrounded in a containing hbox so that the Close and Clear buttons can be added there. See the mockups in bug 559481. This patch implements this. This patch is part of the Firefox 4 Console UI. The current UI for the console is simply a placeholder and has not yet been designed from a UX perspective (see bug 559481). Because I am requesting blocking status for the Console UI, and this is a critical part of the Console user experience, I am requesting that this bug block the Firefox 4 release as well.
Attachment #459666 -
Flags: review?(gavin.sharp)
Assignee | ||
Updated•14 years ago
|
Summary: Surround the Console's input field in a containing box → Add Close and Clear buttons to the bottom of the Console
Assignee | ||
Comment 1•14 years ago
|
||
Updated the description to more accurately reflect the actual user impact of this bug.
Comment 2•14 years ago
|
||
Why is the CSS width needed?
Assignee | ||
Updated•14 years ago
|
Attachment #459666 -
Flags: review?(gavin.sharp)
Assignee | ||
Comment 3•14 years ago
|
||
Canceling review due to test failures.
Assignee | ||
Comment 4•14 years ago
|
||
New patch removes the "width: 100%" and applies cleanly on trunk. No test failures.
Attachment #459666 -
Attachment is obsolete: true
Attachment #460360 -
Flags: review?(gavin.sharp)
Assignee | ||
Updated•14 years ago
|
Summary: Add Close and Clear buttons to the bottom of the Console → Add the Close button to the bottom of the Console
Assignee | ||
Updated•14 years ago
|
Attachment #460360 -
Flags: feedback?(ddahl)
Updated•14 years ago
|
Attachment #460360 -
Flags: feedback?(ddahl) → feedback+
Assignee | ||
Comment 5•14 years ago
|
||
Patch part 2 adds the actual close button and styles it appropriately on the Mac.
Attachment #461735 -
Flags: feedback?(ddahl)
Updated•14 years ago
|
Whiteboard: [kd4b4]
Assignee | ||
Updated•14 years ago
|
Attachment #460360 -
Flags: review?(gavin.sharp) → review?(dietrich)
Updated•14 years ago
|
Attachment #461735 -
Flags: feedback?(ddahl) → feedback+
Assignee | ||
Updated•14 years ago
|
Attachment #461735 -
Flags: review?(dietrich)
Updated•14 years ago
|
Attachment #460360 -
Flags: review?(dietrich) → review+
Comment 6•14 years ago
|
||
Comment on attachment 461735 [details] [diff] [review] Proposed patch, part 2. Can you attach a screenshot?
Assignee | ||
Comment 7•14 years ago
|
||
Mac screenshot attached.
Comment 8•14 years ago
|
||
Comment on attachment 461735 [details] [diff] [review] Proposed patch, part 2. >+ let closeButton = this.xulElementFactory("button"); >+ closeButton.setAttribute("class", "jsterm-close-button"); >+ inputContainer.appendChild(closeButton); >+ closeButton.addEventListener("command", HeadsUpDisplayUICommands.toggleHUD, >+ false); line up indent with other params >diff --git a/toolkit/themes/pinstripe/global/icons/console-close.png b/toolkit/themes/pinstripe/global/icons/console-close.png >new file mode 100644 please get UI-R+ on the icon before adding. r=me. please request approval to land after getting UI-R on the new icon.
Attachment #461735 -
Flags: review?(dietrich) → review+
Assignee | ||
Comment 9•14 years ago
|
||
Updated per review comments. UI review requested.
Attachment #463551 -
Flags: ui-review?(limi)
Comment 11•14 years ago
|
||
Wouldn't hold back the release for this, but definitely will approve the fully-reviewed patch.
blocking2.0: ? → -
Assignee | ||
Comment 12•14 years ago
|
||
Rebased part 1 to trunk. The changes were minimal.
Assignee | ||
Comment 13•14 years ago
|
||
Rebased part 2. Trivial changes.
Attachment #463551 -
Attachment is obsolete: true
Attachment #464661 -
Flags: ui-review?(limi)
Attachment #463551 -
Flags: ui-review?(limi)
Comment 14•14 years ago
|
||
Comment on attachment 464661 [details] [diff] [review] Proposed patch, part 2 (revised per review, trunk rebase 2010-08-10). Much improved over the previous UI iteration. It is a bit dangerous to put this control where there would normally be an "Evaluate" or "Execute" button that acts on the text input, but as long as there's no data loss involved, this is certainly better. Another approach would be to have the close button be inside the console itself (where the output is), but I'd have to explore how to make this not be messy if we were to do such a thing.
Attachment #464661 -
Flags: ui-review?(limi) → ui-review+
Assignee | ||
Updated•14 years ago
|
Attachment #464661 -
Flags: approval2.0?
Updated•14 years ago
|
Whiteboard: [kd4b4] → [kd4b5]
Comment 15•14 years ago
|
||
Why is the button only styled on Mac?
Assignee | ||
Comment 16•14 years ago
|
||
I have styling for Windows and Linux, but the patches have bitrotted. Been focused on patches that need to get in before string freeze; will clean them up before betaN.
Updated•14 years ago
|
Attachment #464661 -
Flags: approval2.0? → approval2.0+
Comment 18•14 years ago
|
||
patch part 1, version 2 has bitrotted (according to pwalton) and part 2 has not been tested.
Whiteboard: [kd4b5] → [kd4b5] [patchbitrot]
Updated•14 years ago
|
Whiteboard: [kd4b5] [patchbitrot] → [kd4b6] [patchbitrot]
Comment 19•14 years ago
|
||
Driveby Input search for users sending feedback about this issue - http://input.mozilla.com/en-US/search/?version=&product=firefox&date_start=&date_end=&sentiment=sad&q=tool+close http://input.mozilla.com/en-US/search/?product=firefox&sentiment=sad&date_end=&date_start=&version=&q=console+close
Whiteboard: [kd4b6] [patchbitrot] → [kd4b6] [patchbitrot] [Input]
Assignee | ||
Comment 20•14 years ago
|
||
Patch part 1 rebased to trunk.
Attachment #464659 -
Attachment is obsolete: true
Assignee | ||
Comment 21•14 years ago
|
||
Patch part 2 rebased to trunk.
Assignee | ||
Comment 22•14 years ago
|
||
Patch part 3 adds Windows and Linux support.
Attachment #472021 -
Flags: feedback?(ddahl)
Assignee | ||
Comment 23•14 years ago
|
||
Patch part 4 adds a unit test. This completes the patch series for this bug.
Attachment #472039 -
Flags: feedback?(ddahl)
Assignee | ||
Updated•14 years ago
|
Whiteboard: [kd4b6] [patchbitrot] [Input] → [kd4b6] [patchclean:0903] [Input]
Updated•14 years ago
|
Blocks: devtools4b7
Assignee | ||
Updated•14 years ago
|
Attachment #472021 -
Flags: feedback?(ddahl) → feedback?(mihai.sucan)
Assignee | ||
Updated•14 years ago
|
Attachment #472039 -
Flags: feedback?(ddahl) → feedback?(mihai.sucan)
Assignee | ||
Updated•14 years ago
|
Attachment #472021 -
Flags: review?(dietrich)
Assignee | ||
Updated•14 years ago
|
Attachment #472039 -
Flags: review?(dietrich)
Comment 24•14 years ago
|
||
Comment on attachment 472021 [details] [diff] [review] Proposed patch, part 3. This looks fine to me. However, I am not sure why you do not use background-image instead of list-style-image? Also, why do you have all those !important priorities? Is there another stylesheet overwriting those properties?
Attachment #472021 -
Flags: feedback?(mihai.sucan) → feedback+
Comment 25•14 years ago
|
||
Comment on attachment 472039 [details] [diff] [review] Proposed patch, part 4. The test looks fine. However, the tabBrowser variable name is a misnomer. gBrowser is the tabbrowser (see tabbrowser.xul). Also, instead of using getBrowserForTab() you can directly use gBrowser.selectedBrowser.
Attachment #472039 -
Flags: feedback?(mihai.sucan) → feedback+
Comment 26•14 years ago
|
||
Comment on attachment 472021 [details] [diff] [review] Proposed patch, part 3. why all the !important? and why no mac styling?
Comment 27•14 years ago
|
||
Comment on attachment 472039 [details] [diff] [review] Proposed patch, part 4. r=me with mihai's comments addressed.
Attachment #472039 -
Flags: review?(dietrich) → review+
Assignee | ||
Comment 28•14 years ago
|
||
(In reply to comment #26) > Comment on attachment 472021 [details] [diff] [review] > Proposed patch, part 3. > > why all the !important? and why no mac styling? Mac styling is in patch part 2. I'm currently in the process of taking an axe to as much of the !important as I can.
Assignee | ||
Comment 29•14 years ago
|
||
Turns out the !important is actually all necessary.
Assignee | ||
Updated•14 years ago
|
Whiteboard: [kd4b6] [patchclean:0903] [Input] → [kd4b6] [patchbitrot] [Input]
Assignee | ||
Comment 30•14 years ago
|
||
Patch part 1 version 2.1 rebases to trunk.
Assignee | ||
Comment 31•14 years ago
|
||
Proposed patch part 2, version 1.1 rebases to trunk.
Assignee | ||
Updated•14 years ago
|
Whiteboard: [kd4b6] [patchbitrot] [Input] → [kd4b6] [patchclean:0908] [Input]
Updated•14 years ago
|
Attachment #472021 -
Flags: review?(dietrich)
Attachment #472021 -
Flags: review+
Attachment #472021 -
Flags: approval2.0+
Assignee | ||
Updated•14 years ago
|
Attachment #472039 -
Flags: approval2.0?
Assignee | ||
Updated•14 years ago
|
Attachment #460360 -
Flags: approval2.0?
Assignee | ||
Updated•14 years ago
|
Attachment #461735 -
Flags: approval2.0?
Assignee | ||
Updated•14 years ago
|
Attachment #461735 -
Flags: approval2.0?
Assignee | ||
Updated•14 years ago
|
Attachment #460360 -
Flags: approval2.0?
Assignee | ||
Updated•14 years ago
|
Attachment #470550 -
Attachment is obsolete: true
Assignee | ||
Updated•14 years ago
|
Attachment #470551 -
Attachment is obsolete: true
Assignee | ||
Updated•14 years ago
|
Attachment #473119 -
Flags: approval2.0?
Updated•14 years ago
|
Attachment #472039 -
Flags: approval2.0? → approval2.0+
Updated•14 years ago
|
Attachment #473119 -
Flags: approval2.0? → approval2.0+
Assignee | ||
Updated•14 years ago
|
Keywords: uiwanted → checkin-needed
Comment 32•14 years ago
|
||
was this tested on try?/windows/linux?
Assignee | ||
Comment 33•14 years ago
|
||
Try no, Windows yes, Linux yes.
Comment 34•14 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/976d2a371fe3 http://hg.mozilla.org/mozilla-central/rev/4836972f8f75 http://hg.mozilla.org/mozilla-central/rev/d207a06a5d52 http://hg.mozilla.org/mozilla-central/rev/6b33742b5900
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 4.0b6
Updated•14 years ago
|
Keywords: checkin-needed
Comment 36•14 years ago
|
||
From the test code: EventUtils.synthesizeMouse(closeButton, 0, 0, {}); ok(!(hudId in HUDService.windowRegistry), "the console is closed when the " + "close button is pressed"); In opt builds, the test passes, but it fails for me in debug builds. I believe the code should wait for the click event before checking.
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•