Closed Bug 1543898 Opened 5 months ago Closed 5 months ago

SharedWorker must release the MessagePortIdentifier if the creation fails

Categories

(Core :: DOM: Workers, defect)

defect
Not set

Tracking

()

RESOLVED FIXED
mozilla68
Tracking Status
firefox68 --- fixed

People

(Reporter: baku, Assigned: baku)

Details

Attachments

(1 file)

At the moment, if the SharedWorker constructor fails, we leak its messagePort because MessagePort::ForceClose() is not called anywhere here:

https://searchfox.org/mozilla-central/rev/6dab6dad9cc852011a14275a8b2c2c03ed7600a7/dom/workers/sharedworkers/SharedWorkerService.cpp#213

Pushed by amarchesini@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/010b72a5a21c
SharedWorker must release the MessagePortIdentifier if the creation fails, r=smaug
Status: NEW → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
You need to log in before you can comment on or make changes to this bug.