Closed Bug 580854 Opened 14 years ago Closed 14 years ago

Console timestamps should be themed

Categories

(DevTools :: General, defect)

defect
Not set
normal

Tracking

(blocking2.0 -)

RESOLVED DUPLICATE of bug 586724
Tracking Status
blocking2.0 --- -

People

(Reporter: pcwalton, Assigned: pcwalton)

References

Details

Attachments

(3 obsolete files)

Attached patch Patch. (obsolete) (deleted) — Splinter Review
The console timestamps should be themeable, so I've separated them out into <span> elements. To do this the following changes were made: (1) The function ConsoleUtils.timestampString() is changed to timestampNode(), which returns a DOM node. (2) The callers of timestampString() are updated to use the new interface. (3) Tests are updated. There is deliberately no styling on the timestamps, to minimize the size of the patch. This patch does not depend on any unreviewed code. 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 #459272 - Flags: feedback?(ddahl)
Comment on attachment 459272 [details] [diff] [review] Patch. > createLogNode: function LM_createLogNode() > { The LogMessage ctor is going away soon in favor of Mihai's (HUDMessage) WebConsoleMessage ctor - mute point really. >@@ -2989,13 +2996,15 @@ > }, > > /** >- * Generates a formatted timestamp string for displaying in console messages. >+ * Generates a formatted timestamp node for displaying in console messages. > * > * @param integer [ms] Optional, allows you to specify the timestamp in > * milliseconds since the UNIX epoch. >- * @returns string The timestamp formatted for display. >+ * @param IDOMDocument [chromeDocument] The document for which the node nit: s/nsIDOMDocument/IDOMDocument/ you'll have to do that globally on this patch:) >+ * should be created. >+ * @returns IDOMNode A node containing a timestamp formatted for display. r+ with changes
Attachment #459272 - Flags: feedback?(ddahl) → feedback+
Attached patch Proposed patch, version 2. (obsolete) (deleted) — Splinter Review
Updated patch. Replaces uses of IDOM* with nsIDOM*. Adds myself to the author list.
Attachment #459272 - Attachment is obsolete: true
Attachment #459598 - Flags: review?(gavin.sharp)
Attached patch Proposed patch, version 3. (obsolete) (deleted) — Splinter Review
New patch is rebased to mozilla-central and adds a unit test.
Attachment #459598 - Attachment is obsolete: true
Attachment #459984 - Flags: feedback?(ddahl)
Attachment #459598 - Flags: review?(gavin.sharp)
Won't hold the release to make an "under the hood" feature themable, but would happily approve a small, safe, reviewed patch.
blocking2.0: ? → -
Attachment #459984 - Flags: feedback?(ddahl) → feedback+
Attachment #459984 - Flags: review?(gavin.sharp)
Summary: Console timestamps should be themeable → Console timestamps should be themed
This bug will be obsolete once the console is fully XULified. Marking as a duplicate of the more specific bug 586724.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
Attachment #459984 - Attachment is obsolete: true
Attachment #459984 - Flags: review?(gavin.sharp)
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: