Make ConsoleApiListener and ConsoleServiceListener take a function instead of an object
Categories
(DevTools :: Console, task)
Tracking
(firefox79 fixed)
Tracking | Status | |
---|---|---|
firefox79 | --- | fixed |
People
(Reporter: nchevobbe, Assigned: nchevobbe)
References
(Blocks 1 open bug)
Details
Attachments
(3 files)
At the moment, those listener take an object as their second argument, which must contain one specific property (resp onConsoleAPICall
and onConsoleServiceMessage
).
The object isn't used for anything else.
The whole workflow would be easier to follow if we were directly passing the function.
Assignee | ||
Comment 1•5 years ago
|
||
It used to take an object with only 1 property, a function. The way it was
called in the webconsole actor made it harder to follow than it actually need.
We take that as an opportunity to convert the function to a class.
Assignee | ||
Comment 2•5 years ago
|
||
It used to take an object with only 1 property, a function. The way it was
called in the webconsole actor made it harder to follow than it actually need.
We take that as an opportunity to convert the function to a class.
Depends on D79249
Assignee | ||
Comment 3•5 years ago
|
||
It used to take an object with only 1 property, a function. The way it was
called in the webconsole actor made it harder to follow than it actually need.
We take that as an opportunity to convert the function to a class.
Depends on D79252
Comment 5•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/f48c3a894b8a
https://hg.mozilla.org/mozilla-central/rev/6b38bfc53cf3
https://hg.mozilla.org/mozilla-central/rev/0da6f494ad2c
Description
•