Closed Bug 582400 Opened 14 years ago Closed 14 years ago

Move the Clear functionality in the Web Console to a context menu

Categories

(DevTools :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 4.0b5

People

(Reporter: pcwalton, Assigned: pcwalton)

References

Details

(Whiteboard: [kd4b5] [patchclean:0819])

Attachments

(3 files, 2 obsolete files)

Attached patch Proposed patch.Splinter Review
In the Web Console, the Clear Console button takes up a large amount of screen real estate and slightly clutters the interface. It's also an infrequently-used action, especially if we have headers to help developers visually categorize their messages (bug 580400). So I suggest moving it to a context menu.

The attached patch implements this. Requesting approval for Firefox 4.
Attachment #460673 - Flags: ui-review?(limi)
Attachment #460673 - Flags: feedback?(ddahl)
Status: NEW → ASSIGNED
Keywords: uiwanted
Blocks: consoleui
Comment on attachment 460673 [details] [diff] [review]
Proposed patch.

Won't this make the clear functionality less discoverable?
Yes, but I think it's rare enough that the tradeoff in discoverability versus clutter reduction makes it worth it. The alternative would be to move the clear button to the bottom right.
Attachment #460673 - Flags: feedback?(ddahl) → feedback+
Attachment #460673 - Flags: review?(dtownsend)
Attachment #460673 - Flags: review?(dtownsend) → review+
Attached image Screenshot.
Screenshot attached.
I do like like that. nice.
Whiteboard: [kd4b3]
Whiteboard: [kd4b3] → [kd4b4]
Comment on attachment 460673 [details] [diff] [review]
Proposed patch.

I don't have strong opinions either way, but right-click is a fine way to do this — if possible, it would also be nice to support the keyboard shortcut that terminals use to do this (Ctrl/Cmd-K), but since it's already assigned to a function in FF, it might be hard to selectively override it here.

In any case, I'm fine with either approach, as long as the console can be cleared easily. :)
Attachment #460673 - Flags: ui-review?(limi) → ui-review+
Attachment #460673 - Flags: approval2.0?
Attachment #460673 - Flags: approval2.0? → approval2.0+
Keywords: uiwantedcheckin-needed
this conflicts now that bug 574036 has landed. Doesn't apply cleanly.
This patch does not apply
Keywords: checkin-needed
Rebased to trunk. I'm requesting rereview because the patch is significantly different from the older iteration now that bug 574036 has landed.
Attachment #464628 - Flags: feedback?(ddahl)
Attachment #464628 - Flags: feedback?(ddahl) → feedback+
Attachment #464628 - Flags: review?(dietrich)
Comment on attachment 464628 [details] [diff] [review]
Proposed patch (trunk rebase 2010-08-10).

r+a=me
Attachment #464628 - Flags: review?(dietrich)
Attachment #464628 - Flags: review+
Attachment #464628 - Flags: approval2.0+
Keywords: checkin-needed
Whiteboard: [kd4b4] → [kd4b5]
Whiteboard: [kd4b5] → [kd4b5] [patchclean:0817]
rebased - problem in properties file
Attachment #464628 - Attachment is obsolete: true
Attachment #467539 - Flags: review+
Whiteboard: [kd4b5] [patchclean:0817] → [kd4b5] [patchclean:0819]
Keywords: checkin-needed
None of the tests run with this patch applied. perhaps I rebased it wrong?
Attachment #467539 - Attachment is obsolete: true
after the next push we will have to rebase this again and then push it.
(In reply to comment #13)
> after the next push we will have to rebase this again and then push it.

nevermind - wrong bug.
http://hg.mozilla.org/mozilla-central/rev/d35447bc512e
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 4.0b5
postmortem review nit: the clear menuitem should not have buttonType="clear", but something like id="hud-clear".
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: