Closed Bug 583464 Opened 14 years ago Closed 14 years ago

HeadsUpDisplay.clearConsoleOutput() fails

Categories

(DevTools :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: msucan, Assigned: msucan)

References

Details

(Whiteboard: [kd4b4])

Attachments

(1 file, 1 obsolete file)

Currently the WebConsole has three ways for clearing the output:

HUDService.clearDisplay(id)
JSTerm.clearOutput()
HeadsUpDisplay.clearConsoleOutput() - this is never used and it fails.

I bumped into this issue when writing a test code. I had the HeadsUpDisplay object and I wanted to call clearConsoleOutput(), but that failed. Then I saw the rest of the available methods that do the same thing.

We should probably fix the clearConsoleOutput() method or remove it.
Attached patch fix + test code (obsolete) — Splinter Review
Proposed fix and test code. This patch should apply cleanly on mozilla-central.

The fix is only limited to the HeadsUpDisplay.clearConsoleOutput() method.
Assignee: nobody → mihai.sucan
Status: NEW → ASSIGNED
Attachment #461778 - Flags: feedback?(ddahl)
Whiteboard: [kd4b4]
perhaps we only need 2 methods, the jsterm and the working hudservice one?
Sure, we can go for that. Shall I post a patch that removes the HeadsUpDisplay.clearConsoleOutput() method? (marking the current patch as obsolete, obviously)
(In reply to comment #3)
> Sure, we can go for that. Shall I post a patch that removes the
> HeadsUpDisplay.clearConsoleOutput() method? (marking the current patch as
> obsolete, obviously)

Yeah, less code is good. Make sure no other callers exist.
Updated patch - removed the method. It is unused, so no other changes are needed.
Attachment #461778 - Attachment is obsolete: true
Attachment #462123 - Flags: feedback?(ddahl)
Attachment #461778 - Flags: feedback?(ddahl)
Attachment #462123 - Flags: feedback?(ddahl) → feedback+
We can put this up for review, since it's just a trivial removal of code.
Attachment #462123 - Flags: review?(sdwilsh)
Comment on attachment 462123 [details] [diff] [review]
[checked-in] patch for removing the method

r=sdwilsh
Attachment #462123 - Flags: review?(sdwilsh) → review+
Comment on attachment 462123 [details] [diff] [review]
[checked-in] patch for removing the method

While I'm here, a=sdwilsh with a simple, only code removal, change.
Attachment #462123 - Flags: approval2.0+
Keywords: checkin-needed
Comment on attachment 462123 [details] [diff] [review]
[checked-in] patch for removing the method

http://hg.mozilla.org/mozilla-central/rev/111eb6a4ad98
Attachment #462123 - Attachment description: patch for removing the method → [checked-in] patch for removing the method
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: