Closed Bug 1819952 Opened 1 year ago Closed 1 year ago

Give some WebRTC Destroy runnables better names

Categories

(Core :: WebRTC, task)

task

Tracking

()

RESOLVED FIXED
112 Branch
Tracking Status
firefox112 --- fixed

People

(Reporter: mccr8, Assigned: mccr8)

References

Details

Attachments

(1 file)

There are a few uses of NewNonOwningRunnableMethod in WebRTC that pass __func__ in methods called "Destroy" which is a very common name. The drawback is that if the runnable leaks, as seen in bug 1775056, it can be hard to figure out what this even is.

I think I've audited every one of the runnable creating methods in nsThreadUtils, and these three in WebRTC seem to be the only instances in a method named Destroy that is using func.

(eg the other ones have the class name as well)

Pushed by amccreight@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/259e1aeae776
Give some WebRTC Destroy runnables better names. r=bwc
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: