Closed
Bug 1655442
Opened 4 years ago
Closed 4 years ago
Make usage of nsIWorkerDebugger.addListener more explicit
Categories
(DevTools :: Framework, task)
DevTools
Framework
Tracking
(firefox81 fixed)
RESOLVED
FIXED
81 Branch
Tracking | Status | |
---|---|---|
firefox81 | --- | fixed |
People
(Reporter: nchevobbe, Assigned: nchevobbe)
Details
Attachments
(1 file)
In a few places were calling addListener
on worker debugger with this
. Often, the class we're using this in has multiple method, and it's hard to know what's needed for the listener and what's not.
The listener takes only 3 possible method (https://searchfox.org/mozilla-central/source/__GENERATED__/dist/include/nsIWorkerDebugger.h#31-45):
onClose
onError
onMessage
We should explicitly specify those listeners instead of using this
, so one does not have to dig through internals to find out what these addListener
are doing.
Assignee | ||
Comment 1•4 years ago
|
||
Declare separate listener objects instead of relying on the presence of the
listener method in a broader class.
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d96dc5d7910a Make usage of nsIWorkerDebugger.addListener more explicit. r=loganfsmyth
Comment 3•4 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
status-firefox81:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 81 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•