Closed Bug 1644966 Opened 5 years ago Closed 5 years ago

Make ConsoleApiListener and ConsoleServiceListener take a function instead of an object

Categories

(DevTools :: Console, task)

task

Tracking

(firefox79 fixed)

RESOLVED FIXED
Firefox 79
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.

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.

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

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

Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f48c3a894b8a Change second parameter of ConsoleServiceListener to a function. r=jdescottes. https://hg.mozilla.org/integration/autoland/rev/6b38bfc53cf3 Change second parameter of ConsoleAPIListener to a function. r=jdescottes. https://hg.mozilla.org/integration/autoland/rev/0da6f494ad2c Change parameter of ContentProcessListener to a function. r=jdescottes.
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 79
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: