Closed Bug 1615206 Opened 6 years ago Closed 24 days ago

"Group Similar Messages" settings only impact defined list of warning message types

Categories

(DevTools :: Console, defect, P3)

74 Branch
defect

Tracking

(relnote-firefox 143+, firefox143 fixed)

RESOLVED FIXED
143 Branch
Tracking Status
relnote-firefox --- 143+
firefox143 --- fixed

People

(Reporter: alex, Assigned: nchevobbe)

References

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:73.0) Gecko/20100101 Firefox/73.0

Steps to reproduce:

I opened the Console Settings and removed the tick "Group Similar Messages".
But still, my logs are group. Even when "Show Timestamps" is enabled.

Example code:
setInterval(() => {
console.log("Message");
}, 250);

(Try here: https://jsfiddle.net/afr3Lz9s/)

Actual results:

"Message" (5)

Expected results:

"Message"
"Message"
"Message"
"Message"
"Message"

Hello, thanks for the bug report.
The label of the setting is a bit misleading, we are only use that to group some warning messages (tracking protection warnings mainly).
It would be nice to disable the "repeat" mechanism for regular messages for sure.

Harald, what do you think?

Flags: needinfo?(hkirschner)
Priority: -- → P3
Summary: Console: "Group Similar Messages" does not work → "Group Similar Messages" does not work

I guess we could treat those options under the same user-facing pref. WDYT, Nicolas?

Flags: needinfo?(hkirschner) → needinfo?(nchevobbe)

yes, that could be doable.
Having a pref for the "repeat" mechanism would mean it could be switched on and off, so we'd have to revisit our current implementation (we don't keep the message, only increment a counter).
That would help with another behavior people want (being able to expand a group of repeated messages, I guess to see the timestamps?)

Flags: needinfo?(nchevobbe)

Seems like one decision would be if we can accept a trade-off that the checkbox is being applied to the existing logs or only future logs.

I am concerned that we keep a lot of optional data just in case users want to see it (like xhr/requests in Console), degrading both memory and performance.

Severity: normal → S4

Issue still exists on Firefox 76.0

Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0

Still a problem on Firefox 87.

Regarding the above questions, I can definitely confirm that as a user, I expect the option to control the grouping of all messages, not just warnings and especially not just some warnings of specific kinds.

Severity: S4 → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: "Group Similar Messages" does not work → "Group Similar Messages" settings only impact defined list of warning message types

This still exists on FF 98.0.2.

I was thinking some of my asynchronous functionality wasn't working when the same response was being given, unknown to me was this feature being enabled by default, and broken.

This creates confusion and should not even be active by default.

The severity field for this bug is relatively low, S3. However, the bug has 3 duplicates.
:nchevobbe, could you consider increasing the bug severity?

For more information, please visit auto_nag documentation.

Flags: needinfo?(nchevobbe)

still S3 IMO

Flags: needinfo?(nchevobbe)

Encountered this bug as well while tracing some console.log messages. I worked around it by adding a Math.random() call in the console.log arguments, as below.

console.log('initial string', Math.random());

The bug is still not fixed even after 3 years..
Still exists on FF 109.0.1.

The issue still persist on Firefox 111.0 (MacOS Ventura). A fix would be great, this is quite confusing.

Firefox Developer Edition 113.0b6 (64-bit), the bug still here.

In addition to above tip, i use console.log('something', Date.now()). It is a little bit convenient than Math.random() for me.

Also it may be human-like formatted :)

console.log(
	'something',
	new Date().toLocaleTimeString(
		'en-GB',
		{
			hour: '2-digit',
			minute: '2-digit',
			second: '2-digit',
			fractionalSecondDigits: 3,
		}
	)
)
Duplicate of this bug: 1902842
See Also: → 1048287, 704252

i know it sounds insignificant, but it would help me to better overview the log messages while debugging the js code i written. so +1

One of the most irritating things about this was the choice of where to put the repeat label. In blue, on the far right, near the blue source link. On a wide monitor, it's way out of eyeline and often missed. Even just moving it to the left hand side between the timestamp and the message would be a huge improvement.

It would really be great if this got fixed finally. Or bare minimum move the number to the left side of the screen where the text output is. I very often use console output to debug stuff I'm working on. It's short messages. I'm looking at the left side of the screen for updates, not the complete opposite side to see if a very tiny number has ticked up.

Still an issue in v140.0.4
Frustrating that this still hasn't been fixed 5 years later.
I want to see ALL my console messages, not just an incrementing number!

The existing setting was added to control grouping similar warning messages.
Due to the wording of the setting, users were also thinking it could control
repeated messages (the small badge/bubble we put next to messages when successibe
messages have the same text).
This patch renames the warning group pref into something that can drive both of
these, and we make the repeat mechanism check the value of the pref befor repeating.

Note that for repeated message, unlike warning groups, this doesn't "ungroup"
the messages, but that should be fine like this.

A node test case is added, as well as a mochitest (event though the test was already
checking repeated messages in a specific context, it's still nice to have
some basic actual coverage)

Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED

I quickly created a patch for this with some test coverage, renaming the pref and re-using the existing setting to control the repeat mechanism

Pushed by nchevobbe@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/f70676c6450e https://hg.mozilla.org/integration/autoland/rev/0f56ee13b4b5 [devtools] Make the "Group similar message" setting control repeating messages. r=devtools-reviewers,ochameau
Status: ASSIGNED → RESOLVED
Closed: 24 days ago
Resolution: --- → FIXED
Target Milestone: --- → 143 Branch

Should we add this to the Fx143 relnotes? Feel free to add a nomination if yes.

Flags: needinfo?(nchevobbe)
See Also: → 1979010

Release Note Request (optional, but appreciated)
[Why is this notable]: Dev feature allowing to disable grouping of similar successive logs in the console
[Affects Firefox for Android]: no
[Suggested wording]: Unchecking the Group Similar Messages setting will prevent successive similar messages to be grouped, all messages will be displayed in the output.
[Links (documentation, blog post, etc)]: https://firefox-source-docs.mozilla.org/devtools-user/web_console/ui_tour/index.html#toolbar

relnote-firefox: --- → ?
Flags: needinfo?(nchevobbe)

Added to the Fx143 relnotes, thanks.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: