Closed Bug 1534927 Opened 6 years ago Closed 6 years ago

warningGroup message should be created outside of console.group

Categories

(DevTools :: Console, enhancement, P1)

66 Branch
enhancement

Tracking

(firefox68 fixed)

RESOLVED FIXED
Firefox 68
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:

  1. execute console.groupCollapsed("action")
  2. Do some action in the page, at least on that can lead to a content blocked warning messages
  3. execute console.groupEnd()
  4. 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.

Whiteboard: [console-group]
Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Priority: P2 → P1

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.

Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/354e9abf1a43 Create warningGroup outside of console.group. r=Honza.
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 68
Whiteboard: [console-group] → [console-grouping]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: