warningGroup message should be created outside of console.group
Categories
(DevTools :: Console, enhancement, P1)
Tracking
(firefox68 fixed)
Tracking | Status | |
---|---|---|
firefox68 | --- | fixed |
People
(Reporter: nchevobbe, Assigned: nchevobbe)
References
Details
(Whiteboard: [console-grouping])
Attachments
(1 file)
So, let's say you do the following:
- execute
console.groupCollapsed("action")
- Do some action in the page, at least on that can lead to a content blocked warning messages
- execute
console.groupEnd()
- Do other actions in the page that can lead to content blocked warning messages.
With Bug 1524276 the tracking protection messages are going to be grouped, but since we show the group at the position of the first tracking protection message, in our case we won't see that there are new warning messages (because the console.groupCollapsed
is closed).
To prevent this, we should create warningGroups before the outermost current console.group
.
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 1•6 years ago
|
||
With this patch, we always create warningGroups outside of the outermost
console.group the first warning message could be in.
This is done because we don't want a warningGroup to be burried in a console.group,
or worse, in a console.groupCollapsed, where it wouldn't be visible at all.
The messages reducer is modified to do that, and a test is added
to ensure all the group interactions work as expected.
Comment 3•6 years ago
|
||
bugherder |
Updated•6 years ago
|
Description
•