Closed Bug 1432771 Opened 6 years ago Closed 6 years ago

clear() helper shouldn't be logged in the output

Categories

(DevTools :: Console, defect, P1)

defect

Tracking

(firefox60 fixed)

RESOLVED FIXED
Firefox 60
Tracking Status
firefox60 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

Details

(Whiteboard: [newconsole-mvp])

Attachments

(1 file)

Steps to reproduce:
1. Open the console
2. Evaluate `clear()`


Expected results:

The console output is cleared, i.e. the output is empty

Actual results:

The console gets cleared, but the "clear()" message is still visible.
Whiteboard: [newconsole-mvp]
This is intermittent, and probably caused by the batching we do.
Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Priority: -- → P1
Comment on attachment 8945089 [details]
Bug 1432771 - Clear queues in dispatchMessagesClear; .

https://reviewboard.mozilla.org/r/215314/#review221810

I'd like if we could audit the implementations of console.clear(), clear(), and the clear button/key shortcut in the UI and make sure we are sharing where appropriate. But in the meantime this looks like a nice simple fix!

::: commit-message-b0baa:4
(Diff revision 1)
> +Bug 1432771 - Clear queues in dispatchMessagesClear; r=bgrins.
> +
> +In the console, to batch messages addition, we use queues which are
> +then comsumed once every 50ms. But if a message is push to a queue,

Typo: 'consumed'

::: commit-message-b0baa:4
(Diff revision 1)
> +Bug 1432771 - Clear queues in dispatchMessagesClear; r=bgrins.
> +
> +In the console, to batch messages addition, we use queues which are
> +then comsumed once every 50ms. But if a message is push to a queue,

'push' -> 'pushed'
Attachment #8945089 - Flags: review?(bgrinstead) → review+
Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/37cd2d413696
Clear queues in dispatchMessagesClear; r=bgrins.
https://hg.mozilla.org/mozilla-central/rev/37cd2d413696
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 60
I was able to reproduce this issue in Firefox 59.0.3 (20180427210249) on Windows 10x64.

I was not able to reproduce this issue on both Firefox 60.0b16 (20180426170554) on Windows 10x64 and on Firefox Nightly 61.0a1 (20180503220110) on Windows 10x64.

[bugday-20180502]
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: