Closed
Bug 757738
Opened 13 years ago
Closed 13 years ago
Websockets: release reference to nsIWebSocketListener after OnClose
Categories
(Core :: Networking: WebSockets, defect)
Core
Networking: WebSockets
Tracking
()
RESOLVED
FIXED
mozilla16
People
(Reporter: jduell.mcbugs, Unassigned)
Details
Attachments
(1 file)
2.04 KB,
patch
|
mcmanus
:
review+
|
Details | Diff | Splinter Review |
Necko channels generally have a contract where they release their ref to the listener after the last callback is completed (OnStopRequest: for nsIWebSocketListener, this would be OnStop). But we're not doing this now in WebSocketChannel, and are instead keeping a ref until the necko channel is destroyed, which puts the onus on the listener to make sure it doesn't have a cyclic reference.
The current code works (nsIWebSocket releases its ref in Disconnect), and I don't want to actually land this until I've had a chance to look into whether it might break things--it passes mochitests fine on my box, though, FWIW.
Attachment #626332 -
Flags: review?(mcmanus)
Comment 1•13 years ago
|
||
Comment on attachment 626332 [details] [diff] [review]
Releases ref to listener after calling OnStop.
all uses of mListener should be protected by mStopped, so that's ought to be fine.
Attachment #626332 -
Flags: review?(mcmanus) → review+
Reporter | ||
Comment 2•13 years ago
|
||
Comment 3•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla16
You need to log in
before you can comment on or make changes to this bug.
Description
•