Closed Bug 1598468 Opened 5 years ago Closed 4 years ago

Temporarily stop emitting Target.receivedMessageFromTarget events due to massive spamming in the console

Categories

(Remote Protocol :: CDP, defect, P1)

defect

Tracking

(firefox72 fixed)

RESOLVED FIXED
Firefox 72
Tracking Status
firefox72 --- fixed

People

(Reporter: whimboo, Assigned: whimboo)

References

Details

(Whiteboard: [puppeteer-alpha])

Attachments

(1 file)

While I cannot see any of those events when running some Puppeteer tests, we seem to emit a new event for each and every method. This completely spams the console, and makes it very hard to follow the order of received events.

So we seem to inappropriately sending out all those events. It would be good to know for which protocol message we have to send this event.

Here the description of the CDP event:

Notifies about a new protocol message received from the session (as reported in attachedToTarget event).

As I can see in the CDP sources the event should only occur when the session is NOT flattened:

https://cs.chromium.org/chromium/src/content/browser/devtools/protocol/target_handler.cc?dr=C&g=0&l=368-369

As replied by Andreas on IRC it will be fine to temporarily disable sending those events.

Assignee: nobody → hskupin
Status: NEW → ASSIGNED
Summary: Log entries for Target.receivedMessageFromTarget are spamming the console → Temporarily stop emitting Target.receivedMessageFromTarget events due to massive spamming in the console

This event is currently sent for each and every message,
and as such duplicates every log entry as displayed when
having the Puppeteer debug logs turned on.

Until we can fix it to behave correctly, it should be
disabled.

Pushed by hskupin@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f859313703c9
[remote] Temporarily stop emitting the "Target.receivedMessageFromTarget" event. r=remote-protocol-reviewers,ato
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 72
Blocks: 1704548
Component: CDP: Target → CDP
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: