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)
DevTools
Console
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.
Assignee | ||
Comment 1•4 years ago
|
||
Oh sorry, I probably introduced these messages via https://phabricator.services.mozilla.com/D114414
Assignee: nobody → poirot.alex
Assignee | ||
Comment 2•4 years ago
|
||
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.
Updated•4 years ago
|
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
Comment 4•4 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 4 years ago
status-firefox91:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 91 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•