nsIStreamListener does not document that onStartRequest/onStopRequest must be called
Categories
(Core :: Networking, defect, P5)
Tracking
()
Tracking | Status | |
---|---|---|
firefox139 | --- | fixed |
People
(Reporter: timeless, Assigned: developer.ruhan, Mentored)
References
()
Details
(Keywords: good-first-bug, Whiteboard: [necko-would-take])
Attachments
(1 file)
Comment 1•21 years ago
|
||
![]() |
||
Comment 2•21 years ago
|
||
Comment 3•21 years ago
|
||
Updated•19 years ago
|
Updated•10 years ago
|
Comment 4•9 years ago
|
||
Comment 5•9 years ago
|
||
Updated•9 years ago
|
Comment 6•8 years ago
|
||
Updated•5 years ago
|
Comment 7•5 years ago
|
||
This good-first-bug hasn't had any activity for 6 months, it is automatically unassigned.
For more information, please visit auto_nag documentation.
Updated•3 years ago
|
Comment 8•1 year ago
|
||
The comment in https://searchfox.org/mozilla-central/source/netwerk/base/nsIStreamListener.idl should say something like:
After successfully calling nsIRequest.asyncOpen the nsIRequestObserver.onStartRequest must be called exactly once.
That can be followed by 0 or more calls to onDataAvailable.
After all onDataAvailable calls have been made, nsIRequestObserver.onStopRequest must be called exactly once to signal the request is complete.
Hi, can I take this bug? from my understanding we just need to add some comments to nsIStreamListener's documentation?
Updated•5 months ago
|
Assignee | ||
Comment 11•5 months ago
|
||
(In reply to Valentin Gosu [:valentin] (he/him) from comment #8)
The comment in https://searchfox.org/mozilla-central/source/netwerk/base/nsIStreamListener.idl should say something like:
After successfully calling nsIRequest.asyncOpen the nsIRequestObserver.onStartRequest must be called exactly once. That can be followed by 0 or more calls to onDataAvailable. After all onDataAvailable calls have been made, nsIRequestObserver.onStopRequest must be called exactly once to signal the request is complete.
Is this the only comment that needs to be added to the documentation or are additional comments necessary?
Comment 12•5 months ago
|
||
Yes. There's a similar comment already present on nsIChannel::asyncOpen, but we should also have some info in nsIStreamListener.
Assignee | ||
Comment 13•4 months ago
|
||
Comment 14•4 months ago
|
||
Comment 15•4 months ago
|
||
bugherder |
Updated•4 months ago
|
Description
•