Closed Bug 1712574 Opened 4 years ago Closed 4 years ago

"Already started legacy listener for document-event" console spam

Categories

(DevTools :: Console, defect, P2)

defect

Tracking

(firefox91 fixed)

RESOLVED FIXED
91 Branch
Tracking Status
firefox91 --- fixed

People

(Reporter: mossop, Assigned: ochameau)

References

Details

(Keywords: dogfood)

Attachments

(1 file)

When I open the browser console I see a whole load of Already started legacy listener for document-event on ... messages completely hiding any messages that might be of interest to me. These should not be showing up.

See Also: → 1712678

Oh sorry, I probably introduced these messages via https://phabricator.services.mozilla.com/D114414

Assignee: nobody → poirot.alex

This code calling watchResourcesForTarget should only be called when
we already called TargetCommand.watchTargets().
When we call ResourceCommand.watchResources for the first time, watchTargets
will process already existing targets and call ResourceCommand.onTargetAvailable (which calls watchResourcesForTarget).
But for any subsequent call, we should use TargetCommand.getAllTargets and call watchResourcesForTarget manually.

Severity: -- → S3
Priority: -- → P2
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ced00f74c8a2 Avoid trying to register the legacy listener twice. r=jdescottes
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 91 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: