Closed Bug 1644304 Opened 4 years ago Closed 2 years ago

WorkerPrivate::RunLoopNeverRan needs to notify and clear weak worker references so PerformanceStorageWorker doesn't leak

Categories

(Core :: DOM: Workers, defect, P2)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1714228

People

(Reporter: asuth, Assigned: asuth)

References

Details

WorkerPrivate::RunLoopNeverRan() needs to notify and clear the WeakWorkerRef obtained by the PerformanceStorageWorker created in WorkerThreadPrimaryRunnable::Run by a call to EnsurePerformanceStorage that, out of threading necessity, is called before the call to BackgroundChild::GetOrCreateForCurrentThread() that can absolutely fail. See https://bugzilla.mozilla.org/show_bug.cgi?id=1638027#c39 for some extra context.

Severity: -- → S3

Hi Eden, you might be interested to look at this? Any relation to bug 1749068 ?

Flags: needinfo?(echuang)

Disclaimer: We've made some other changes to the performance object's lifecycle since then, I think, so it's possible this is moot or the situation has changed.

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Flags: needinfo?(echuang)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.