Closed
Bug 1397627
Opened 7 years ago
Closed 7 years ago
IPCBlobInputStream must be always async and non-blocking
Categories
(Core :: DOM: File, enhancement)
Core
DOM: File
Tracking
()
Tracking | Status | |
---|---|---|
firefox57 | --- | fixed |
People
(Reporter: baku, Assigned: baku)
References
Details
(Whiteboard: [bhr])
Attachments
(4 files)
4.18 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
9.22 KB,
patch
|
Details | Diff | Splinter Review | |
19.79 KB,
patch
|
Details | Diff | Splinter Review | |
12.90 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
This will avoid doing I/O on main-thread.
Assignee | ||
Updated•7 years ago
|
Whiteboard: [qf:p1][bhr]
Assignee | ||
Comment 2•7 years ago
|
||
Smaug, you have already seen this patch before.
Attachment #8905371 -
Flags: review?(bugs)
Assignee | ||
Comment 3•7 years ago
|
||
This patch has been reviewed by smaug for bug 1381465.
Assignee | ||
Comment 4•7 years ago
|
||
This patch has been already reviewed by asuth in bug 1381465
Assignee | ||
Updated•7 years ago
|
Attachment #8905373 -
Attachment description: IPCBlobInputStream should always be async → part 1 - IPCBlobInputStream should always be async
Assignee | ||
Updated•7 years ago
|
Attachment #8905371 -
Attachment description: IPCBlobInputStream should not be seekable → part 2 - IPCBlobInputStream should not be seekable
Assignee | ||
Comment 5•7 years ago
|
||
We should propagate the size of the stream (when known) into necko when calling ExplicitSetUploadStream() otherwise Available() will be used.
Attachment #8905376 -
Flags: review?(bugs)
Comment 6•7 years ago
|
||
Comment on attachment 8905371 [details] [diff] [review]
part 2 - IPCBlobInputStream should not be seekable
Please comment here in the bug (and perhaps also in the commit message) _why_ IPCBlobInputStream shouldn't be seekable, or why we don't need this code anymore.
Totally not clear from this bug currently.
Attachment #8905371 -
Flags: review?(bugs) → review+
Comment 7•7 years ago
|
||
Comment on attachment 8905376 [details] [diff] [review]
part 4 - Fetch and other APIs vs necko and the size of the stream
I think I'd prefer that instead of passing -1, which has special meaning, something like UNKNOWN_BODY_SIZE.
So, please use InternalResponse::UNKNOWN_BODY_SIZE or add a new named constant and use that.
Attachment #8905376 -
Flags: review?(bugs) → review+
Pushed by amarchesini@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/b4f8fad33b2f
IPCBlobInputStream doesn't need to be seekable, r=smaug
https://hg.mozilla.org/integration/mozilla-inbound/rev/f77a81b06e43
IPCBlobInputStream should be always async, r=smaug
https://hg.mozilla.org/integration/mozilla-inbound/rev/85b18b5a5e43
nsIAsyncFileMetadata interface, r=asuth
https://hg.mozilla.org/integration/mozilla-inbound/rev/6933c6396bda
Fetch API and other components should pass the length of the stream to necko when known, r=smaug
Comment 9•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/b4f8fad33b2f
https://hg.mozilla.org/mozilla-central/rev/f77a81b06e43
https://hg.mozilla.org/mozilla-central/rev/85b18b5a5e43
https://hg.mozilla.org/mozilla-central/rev/6933c6396bda
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox57:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
Comment 10•7 years ago
|
||
(tweaking dependency field to replace bug 1399215 with its dupe-target, bug 1398556)
Updated•3 years ago
|
Performance Impact: --- → P1
Whiteboard: [qf:p1][bhr] → [bhr]
You need to log in
before you can comment on or make changes to this bug.
Description
•