Closed Bug 1438163 Opened 6 years ago Closed 6 years ago

BroadcastChannel can leak the IPC actor when the worker thread goes away

Categories

(Core :: DOM: Core & HTML, enhancement, P2)

58 Branch
enhancement

Tracking

()

RESOLVED FIXED
mozilla60
Tracking Status
firefox60 --- fixed

People

(Reporter: baku, Assigned: baku)

Details

Attachments

(1 file)

Currently we use a TeardownRunnable to terminate the IPC BroadcastChannel protocol. This  runnable is dispatched when the worker goes away, but it's not a control runnable and it will not scheduled.
Attached patch bc.patchSplinter Review
Attachment #8950920 - Flags: review?(bugs)
Priority: -- → P2
Is there a test for this showing that the leak is actually fixed?
Comment on attachment 8950920 [details] [diff] [review]
bc.patch

Not sure TeardownRunnable makes the code any easier to follow, but up to you.
Attachment #8950920 - Flags: review?(bugs) → review+
Pushed by amarchesini@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/f1e31bd4313c
BroadcastChannel must release the IPC actor using a WorkerControlRunnable when the worker thread goes away, r=smaug
https://hg.mozilla.org/mozilla-central/rev/f1e31bd4313c
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: