IPCBlobInputStream should call the callback immediately upon receiving AsyncWait if stream is closed
Categories
(Core :: DOM: File, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox79 | --- | fixed |
People
(Reporter: ssengupta, Assigned: ssengupta)
References
Details
Attachments
(2 files, 2 obsolete files)
Currently multiple implementations of nsIAsyncInputStream return an error code (e.g., NS_BASE_STREAM_CLOSED) and do not call the callback if AsyncWait is called and the stream is already closed, which is not expected behaviour. These implementations should be updated to call the callback immediately in such a situation instead of returning an error.
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
Assignee | ||
Comment 2•4 years ago
|
||
Depends on D77407
Assignee | ||
Comment 3•4 years ago
|
||
Depends on D77408
Assignee | ||
Comment 4•4 years ago
|
||
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Updated•4 years ago
|
Comment 5•4 years ago
|
||
Comment on attachment 9152681 [details]
Bug 1641825 - nsBufferedInputStream does not return error and executes callback on AsyncWait/AsyncLengthWait if stream is closed r=baku
Revision D77433 was moved to bug 1641825. Setting attachment 9152681 [details] to obsolete.
Comment 6•4 years ago
|
||
Comment on attachment 9152622 [details]
Bug 1637742 - P3 - PartiallySeekableInputStream does not return error and executes callback on AsyncWait/AsyncLengthWait if stream is closed r=baku
Revision D77409 was moved to bug 1641826. Setting attachment 9152622 [details] to obsolete.
Pushed by abutkovits@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/71080a3ec16c P1 - Protocol documentation now states no error should be returned if AsyncWait is called on closed stream r=baku
Pushed by ncsoregi@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2015a4db7084 P2 - IPCBlobInputStream does not return error and executes callback on AsyncWait/AsyncLengthWait if stream is closed r=baku
Comment 9•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/71080a3ec16c
https://hg.mozilla.org/mozilla-central/rev/2015a4db7084
Description
•