Closed Bug 1637742 Opened 4 years ago Closed 4 years ago

IPCBlobInputStream should call the callback immediately upon receiving AsyncWait if stream is closed

Categories

(Core :: DOM: File, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla79
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: nobody → ssengupta
Severity: -- → S3
Status: NEW → ASSIGNED
Priority: -- → P2
Blocks: 1619953
Severity: S3 → S2
Priority: P2 → P1
Priority: P1 → P2
Summary: All implementations of nsIAsyncInputStream should call the callback immediately upon receiving AsyncWait if stream is closed → IPCBlobInputStream should call the callback immediately upon receiving AsyncWait if stream is closed
Component: XPCOM → DOM: File
Attachment #9152681 - Attachment description: Bug 1637742 - P4 - nsBufferedInputStream does not return error and executes callback on AsyncWait/AsyncLengthWait if stream is closed r=baku → Bug 1641825 - nsBufferedInputStream does not return error and executes callback on AsyncWait/AsyncLengthWait if stream is closed r=baku

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.

Attachment #9152681 - Attachment is obsolete: true

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.

Attachment #9152622 - Attachment is obsolete: true
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
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla79
See Also: → 1706594
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: